summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-11-04 21:53:45 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-04 21:53:45 -0800
commit8d879c8edb474b4c493b59823489357739e771c1 (patch)
treee2a1582ea15793537745cca5e59c713f0ca7177a
parent6337f5ec25499c55a8aa14524b6da8395d5db768 (diff)
parentc23e8d862de72682f444f68fff3b1f30efcc21cd (diff)
downloadandroid_packages_apps_Gallery2-8d879c8edb474b4c493b59823489357739e771c1.tar.gz
android_packages_apps_Gallery2-8d879c8edb474b4c493b59823489357739e771c1.tar.bz2
android_packages_apps_Gallery2-8d879c8edb474b4c493b59823489357739e771c1.zip
am c23e8d86: am 07986225: am c82e65b4: Merge "Disable geometry button if tiny planet is here" into gb-ub-photos-carlsbad
* commit 'c23e8d862de72682f444f68fff3b1f30efcc21cd': Disable geometry button if tiny planet is here
-rw-r--r--src/com/android/gallery3d/filtershow/category/MainPanel.java4
-rw-r--r--src/com/android/gallery3d/filtershow/imageshow/MasterImage.java4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/category/MainPanel.java b/src/com/android/gallery3d/filtershow/category/MainPanel.java
index eb1ce2b0f..082bf143a 100644
--- a/src/com/android/gallery3d/filtershow/category/MainPanel.java
+++ b/src/com/android/gallery3d/filtershow/category/MainPanel.java
@@ -27,6 +27,7 @@ import android.widget.LinearLayout;
import com.android.gallery3d.R;
import com.android.gallery3d.filtershow.FilterShowActivity;
+import com.android.gallery3d.filtershow.imageshow.MasterImage;
import com.android.gallery3d.filtershow.state.StatePanel;
public class MainPanel extends Fragment {
@@ -176,6 +177,9 @@ public class MainPanel extends Fragment {
if (mCurrentSelected == GEOMETRY) {
return;
}
+ if (MasterImage.getImage().hasTinyPlanet()) {
+ return;
+ }
boolean fromRight = isRightAnimation(GEOMETRY);
selection(mCurrentSelected, false);
CategoryPanel categoryPanel = new CategoryPanel();
diff --git a/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java b/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
index 3513ded12..f6b97f11f 100644
--- a/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
+++ b/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
@@ -829,4 +829,8 @@ public class MasterImage implements RenderingRequestCaller {
public BitmapCache getBitmapCache() {
return mBitmapCache;
}
+
+ public boolean hasTinyPlanet() {
+ return mPreset.contains(FilterRepresentation.TYPE_TINYPLANET);
+ }
}