diff options
author | nicolasroard <nicolasroard@google.com> | 2013-07-31 16:22:59 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-07-31 17:39:52 -0700 |
commit | 3a5bc6b23096365e1a814f8999937028bc12b401 (patch) | |
tree | e3f532fb73211a0ac4622581623c1d555aff511a /src/com/android/gallery3d/filtershow/FilterShowActivity.java | |
parent | bb2848ab2a8d532956f4730c8cf7434eb3a8600f (diff) | |
download | android_packages_apps_Snap-3a5bc6b23096365e1a814f8999937028bc12b401.tar.gz android_packages_apps_Snap-3a5bc6b23096365e1a814f8999937028bc12b401.tar.bz2 android_packages_apps_Snap-3a5bc6b23096365e1a814f8999937028bc12b401.zip |
Fix problem with N-1 caching when no filters / one filter
- also fix equals() for geometry
Change-Id: I6f6f21d1e274b3b95ac4b5189b2fa7f419912864
Diffstat (limited to 'src/com/android/gallery3d/filtershow/FilterShowActivity.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/FilterShowActivity.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index b06010f61..0fca6520a 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -127,7 +127,6 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL private static final int SELECT_PICTURE = 1; private static final String LOGTAG = "FilterShowActivity"; - protected static final boolean ANIMATE_PANELS = true; private boolean mShowingTinyPlanet = false; private boolean mShowingImageStatePanel = false; @@ -142,7 +141,6 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL private WeakReference<ProgressDialog> mSavingProgressDialog; private LoadBitmapTask mLoadBitmapTask; - private boolean mLoading = true; private Uri mOriginalImageUri = null; private ImagePreset mOriginalPreset = null; @@ -420,7 +418,6 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL } private void startLoadBitmap(Uri uri) { - mLoading = true; final View loading = findViewById(R.id.loading); final View imageShow = findViewById(R.id.imageShow); imageShow.setVisibility(View.INVISIBLE); @@ -653,7 +650,7 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL if (mAction == TINY_PLANET_ACTION) { showRepresentation(mCategoryFiltersAdapter.getTinyPlanet()); } - mLoading = false; + MasterImage.getImage().notifyGeometryChange(); LoadHighresBitmapTask highresLoad = new LoadHighresBitmapTask(); highresLoad.execute(); |