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

Commit 419daaee authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Gallery2: Check for null on menuItem update

parent f7643c13
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -803,8 +803,9 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
    }

    private void updateMenuItem() {
        if (allVideoFiles() && !mGetContent) {
            mActionMenu.findItem(R.id.action_slideshow).setVisible(false);
        MenuItem actionMenu = mActionMenu.findItem(R.id.action_slideshow);
        if (allVideoFiles() && !mGetContent && actionMenu != null) {
            actionMenu.setVisible(false);
        }
    }