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

Commit 8e582837 authored by Sascha Haeberling's avatar Sascha Haeberling
Browse files

Make sure we don't add the pano sharing menu in the secure lock screen.

  Bug: 8473022

Change-Id: Ie2221b6a660b7c9dc39cef89a509da4b2659adb3
parent 9c48a6c3
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -815,11 +815,13 @@ public abstract class PhotoPage extends ActivityState implements
        int supportedOperations = mCurrentPhoto.getSupportedOperations();
        if (mSecureAlbum != null) {
            supportedOperations &= MediaObject.SUPPORT_DELETE;
        } else if (!mHaveImageEditor) {
        } else {
            mCurrentPhoto.getPanoramaSupport(mUpdatePanoramaMenuItemsCallback);
            if (!mHaveImageEditor) {
                supportedOperations &= ~MediaObject.SUPPORT_EDIT;
            }
        }
        MenuExecutor.updateMenuOperation(menu, supportedOperations);
        mCurrentPhoto.getPanoramaSupport(mUpdatePanoramaMenuItemsCallback);
    }

    private boolean canDoSlideShow() {