Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c870104a authored by nicolasroard's avatar nicolasroard
Browse files

Disable geometry button if tiny planet is here

bug:11288853
Change-Id: I818f406eb25e0f82c89ffde0bd91d2aa8ab31b94
parent 21b61954
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();
+4 −0
Original line number Diff line number Diff line
@@ -829,4 +829,8 @@ public class MasterImage implements RenderingRequestCaller {
    public BitmapCache getBitmapCache() {
        return mBitmapCache;
    }

    public boolean hasTinyPlanet() {
        return mPreset.contains(FilterRepresentation.TYPE_TINYPLANET);
    }
}