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

Commit 736cf74b authored by Wu-cheng Li's avatar Wu-cheng Li
Browse files

Hide action bar when camera screen nail is displayed.

bug:6363385
Change-Id: Ic37afa779339cfe5f66f0a40cbf4870ff1a6a0ee
parent 306a3193
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ public class PhotoPage extends ActivityState
    private DetailsHelper mDetailsHelper;
    private boolean mShowDetails;
    private Path mPendingSharePath;
    private Path mScreenNailItemPath;

    // mMediaSet could be null if there is no KEY_MEDIA_SET_PATH supplied.
    // E.g., viewing a photo in gmail attachment
@@ -177,14 +178,14 @@ public class PhotoPage extends ActivityState
                // Get the ScreenNail from ScreenNailHolder and register it.
                int id = SnailSource.registerScreenNail(mScreenNail);
                Path screenNailSetPath = SnailSource.getSetPath(id);
                Path screenNailItemPath = SnailSource.getItemPath(id);
                mScreenNailItemPath = SnailSource.getItemPath(id);

                // Combine the original MediaSet with the one for CameraScreenNail.
                mSetPathString = "/combo/item/{" + screenNailSetPath +
                        "," + mSetPathString + "}";

                // Start from the screen nail.
                itemPath = screenNailItemPath;
                itemPath = mScreenNailItemPath;
            }

            mMediaSet = mActivity.getDataManager().getMediaSet(mSetPathString);
@@ -286,6 +287,8 @@ public class PhotoPage extends ActivityState
        mCurrentPhoto = photo;
        if (mCurrentPhoto == null) return;
        updateMenuOperations();
        // Hide the action bar when going back to camera preview.
        if (photo.getPath() == mScreenNailItemPath) hideBars();
        updateTitle();
        if (mShowDetails) {
            mDetailsHelper.reloadDetails(mModel.getCurrentIndex());