summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-05-21 09:12:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-21 09:12:25 -0700
commita8d103b48174c9313aed9e4db026c1c19d7dd56c (patch)
tree342a74eda629f9b932405c14778d088baf73a111 /src
parent7b2f0b93fc5f6299511125e509560ac49f90e79a (diff)
parentc6038e29aea5012a8c342d1a4c72aa26a9895519 (diff)
downloadandroid_packages_apps_Gallery2-a8d103b48174c9313aed9e4db026c1c19d7dd56c.tar.gz
android_packages_apps_Gallery2-a8d103b48174c9313aed9e4db026c1c19d7dd56c.tar.bz2
android_packages_apps_Gallery2-a8d103b48174c9313aed9e4db026c1c19d7dd56c.zip
am c6038e29: am a285bc13: Merge "fix TinyPlanets Filter landscape crash" into gb-ub-photos-bryce
* commit 'c6038e29aea5012a8c342d1a4c72aa26a9895519': fix TinyPlanets Filter landscape crash
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/FilterShowActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index d13d261a8..e5ddbf5da 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -433,6 +433,9 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
}
public void showRepresentation(FilterRepresentation representation) {
+ if (representation == null) {
+ return;
+ }
useFilterRepresentation(representation);
// show representation
@@ -817,7 +820,8 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
loadXML();
loadMainPanel();
- if (!mShowingTinyPlanet) {
+ // mLoadBitmapTask==null implies you have looked at the intent
+ if (!mShowingTinyPlanet && (mLoadBitmapTask == null)) {
mCategoryFiltersAdapter.removeTinyPlanet();
}
final View loading = findViewById(R.id.loading);