From 0dc60debea545f5da698d71ab09ad04e96a8b4f9 Mon Sep 17 00:00:00 2001 From: tonymanou Date: Sun, 29 Jan 2017 20:31:56 +0100 Subject: [PATCH] Fix warning about use of API limited to support package --- app/src/main/java/com/topjohnwu/magisk/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);