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

Commit 767e4ce8 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

Merge branch '6824-t-gallery_crash' into 'v1-t'

Gallery2: Check for null on menuItem update

See merge request !75
parents 617d8b63 20345c24
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);
        }
    }