summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2013-05-09 09:27:04 -0700
committerztenghui <ztenghui@google.com>2013-05-09 09:27:04 -0700
commit355148659ec47dcbc0e670da3d38b7590e33d366 (patch)
treeecb23690e3f778df8f53f2c7599a96fc170bdaf8 /src/com
parent1e9c9667ca0cc86f2752a42947eb2b02dc099ee8 (diff)
parent4b04581a65df77b3e3d29fe740411216ec2d079f (diff)
downloadandroid_packages_apps_Snap-355148659ec47dcbc0e670da3d38b7590e33d366.tar.gz
android_packages_apps_Snap-355148659ec47dcbc0e670da3d38b7590e33d366.tar.bz2
android_packages_apps_Snap-355148659ec47dcbc0e670da3d38b7590e33d366.zip
resolved conflicts for merge of 9a4fb2dc to gb-ub-photos-carlsbad
Change-Id: I90ffd8732cf34bb3dea7a849fc37fb1f3d82df39
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java11
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 d45ed56f2..368e5c029 100644
--- a/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java
+++ b/src/com/android/gallery3d/filtershow/filters/FilterBasicRepresentation.java
@@ -16,14 +16,16 @@
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;
@@ -31,6 +33,7 @@ public class FilterBasicRepresentation extends FilterRepresentation implements P
private int mPreviewValue;
public static final String SERIAL_NAME = "Name";
public static final String SERIAL_VALUE = "Value";
+ private boolean mLogVerbose = Log.isLoggable(LOGTAG, Log.VERBOSE);
public FilterBasicRepresentation(String name, int minimum, int value, int maximum) {
super(name);
@@ -50,7 +53,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;
}