diff options
author | ztenghui <ztenghui@google.com> | 2013-05-09 09:22:08 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-05-09 09:22:08 -0700 |
commit | d49fd01c2547c4630c1d3665e70523698ea7f48b (patch) | |
tree | a69986c4ea96c6dbb27d98a2ddeafc423193faab /src/com/android | |
parent | 2ee5df0cd4fec393b22c719620fd158e6b1eccb7 (diff) | |
parent | f4733e6f0f8c7012a448f375627478bfb9e53c96 (diff) | |
download | android_packages_apps_Gallery2-d49fd01c2547c4630c1d3665e70523698ea7f48b.tar.gz android_packages_apps_Gallery2-d49fd01c2547c4630c1d3665e70523698ea7f48b.tar.bz2 android_packages_apps_Gallery2-d49fd01c2547c4630c1d3665e70523698ea7f48b.zip |
am f4733e6f: am 9a4fb2dc: Merge "Fix the verbose log" into gb-ub-photos-bryce
* commit 'f4733e6f0f8c7012a448f375627478bfb9e53c96':
Fix the verbose log
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java index 28ccf7d8f..4d0651edb 100644 --- a/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java +++ b/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java @@ -16,19 +16,22 @@ package com.android.gallery3d.filtershow.filters; -import com.android.gallery3d.app.Log; + +import android.util.Log; + import com.android.gallery3d.filtershow.controller.Control; import com.android.gallery3d.filtershow.controller.FilterView; import com.android.gallery3d.filtershow.controller.Parameter; import com.android.gallery3d.filtershow.controller.ParameterInteger; public class FilterBasicRepresentation extends FilterRepresentation implements ParameterInteger { - private static final String LOGTAG = "FilterBasicRepresentation"; + private static final String LOGTAG = "FilterBasicRep"; private int mMinimum; private int mValue; private int mMaximum; private int mDefaultValue; private int mPreviewValue; + private boolean mLogVerbose = Log.isLoggable(LOGTAG, Log.VERBOSE); public FilterBasicRepresentation(String name, int minimum, int value, int maximum) { super(name); @@ -48,7 +51,9 @@ public class FilterBasicRepresentation extends FilterRepresentation implements P representation.setMinimum(getMinimum()); representation.setMaximum(getMaximum()); representation.setValue(getValue()); - Log.v(LOGTAG, "cloning from <" + this + "> to <" + representation + ">"); + if (mLogVerbose) { + Log.v(LOGTAG, "cloning from <" + this + "> to <" + representation + ">"); + } return representation; } |