diff --git a/app/src/main/java/com/topjohnwu/magisk/MainActivity.java b/app/src/main/java/com/topjohnwu/magisk/MainActivity.java index 581b7879a..52eb28090 100644 --- a/app/src/main/java/com/topjohnwu/magisk/MainActivity.java +++ b/app/src/main/java/com/topjohnwu/magisk/MainActivity.java @@ -180,7 +180,7 @@ public class MainActivity extends AppCompatActivity private void displayFragment(@NonNull Fragment navFragment, String tag, boolean setElevation) { FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); - invalidateOptionsMenu(); + supportInvalidateOptionsMenu(); transaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); transaction.replace(R.id.content_frame, navFragment, tag).commitNow(); if (setElevation) toolbar.setElevation(toolbarElevation);