summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-04-15 14:41:00 -0700
committernicolasroard <nicolasroard@google.com>2013-04-15 23:13:37 -0700
commit673f7408a381705db18e87243755e5ec19247290 (patch)
tree62baa14b71702bfd84540dc4759213b99a3214bf /src
parentc646b996bd327995a4219ea4e103db620eb8d1f8 (diff)
downloadandroid_packages_apps_Snap-673f7408a381705db18e87243755e5ec19247290.tar.gz
android_packages_apps_Snap-673f7408a381705db18e87243755e5ec19247290.tar.bz2
android_packages_apps_Snap-673f7408a381705db18e87243755e5ec19247290.zip
New state panel
bug:8620913 bug:8503386 Change-Id: I35c95103e3b5097df93fa3f48e5562a479915f06
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePreset.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
index 00f5977d1..bd2f494cd 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
@@ -21,15 +21,14 @@ import android.graphics.Rect;
import android.support.v8.renderscript.Allocation;
import android.util.Log;
-import com.android.gallery3d.filtershow.ImageStateAdapter;
import com.android.gallery3d.filtershow.cache.CachingPipeline;
import com.android.gallery3d.filtershow.cache.ImageLoader;
import com.android.gallery3d.filtershow.filters.BaseFiltersManager;
import com.android.gallery3d.filtershow.filters.FilterRepresentation;
-import com.android.gallery3d.filtershow.filters.FiltersManager;
import com.android.gallery3d.filtershow.filters.ImageFilter;
import com.android.gallery3d.filtershow.imageshow.GeometryMetadata;
import com.android.gallery3d.filtershow.imageshow.MasterImage;
+import com.android.gallery3d.filtershow.state.StateAdapter;
import java.util.Vector;
@@ -533,14 +532,11 @@ public class ImagePreset {
return true;
}
- public void fillImageStateAdapter(ImageStateAdapter imageStateAdapter) {
+ public void fillImageStateAdapter(StateAdapter imageStateAdapter) {
if (imageStateAdapter == null) {
return;
}
- imageStateAdapter.clear();
- // TODO: re-enable the state panel
imageStateAdapter.addAll(mFilters);
- imageStateAdapter.notifyDataSetChanged();
}
public void setPartialRendering(boolean partialRendering, Rect bounds) {