summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2013-06-17 13:49:45 -0700
committerRuben Brunk <rubenbrunk@google.com>2013-06-17 13:50:37 -0700
commit2bd10a103c6fc7130a8cf0d199dc77b37076bd1e (patch)
tree3729ad5546178896cac3900a3632dee8a412fa30
parent7c050f5d486e5a2ddd205a64d3abb1f64bc58637 (diff)
downloadandroid_packages_apps_Snap-2bd10a103c6fc7130a8cf0d199dc77b37076bd1e.tar.gz
android_packages_apps_Snap-2bd10a103c6fc7130a8cf0d199dc77b37076bd1e.tar.bz2
android_packages_apps_Snap-2bd10a103c6fc7130a8cf0d199dc77b37076bd1e.zip
Fix IDs for analytics, unlocalize serialization IDs.
Bug: 9467671 Bug: 9336168 Change-Id: Icb0037ab853598b8ad6b931808074f824ea706ed
-rw-r--r--src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java2
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePreset.java2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java
index 2dbff94bd..dfe0308c1 100644
--- a/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java
+++ b/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java
@@ -19,7 +19,6 @@ package com.android.gallery3d.filtershow.filters;
import com.android.gallery3d.filtershow.editors.ImageOnlyEditor;
public class FilterFxRepresentation extends FilterRepresentation {
- private static final String SERIALIZATION_NAME = "LUT3D";
private static final String LOGTAG = "FilterFxRepresentation";
// TODO: When implementing serialization, we should find a unique way of
// specifying bitmaps / names (the resource IDs being random)
@@ -28,7 +27,6 @@ public class FilterFxRepresentation extends FilterRepresentation {
public FilterFxRepresentation(String name, int bitmapResource, int nameResource) {
super(name);
- setSerializationName(SERIALIZATION_NAME + "_" + name);
setFilterClass(ImageFilterFx.class);
mBitmapResource = bitmapResource;
mNameResource = nameResource;
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
index f06e048a2..5eddc9134 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
@@ -498,7 +498,7 @@ public class ImagePreset {
bitmap = environment.applyRepresentation(representation, bitmap);
if (environment.getQuality() == FilterEnvironment.QUALITY_FINAL) {
UsageStatistics.onEvent(UsageStatistics.COMPONENT_EDITOR,
- "SaveFilter", representation.getName(), 1);
+ "SaveFilter", representation.getSerializationName(), 1);
}
if (environment.needsStop()) {
return bitmap;