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

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

Gallery2: Check for null on menuItem update

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


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