mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-02 22:45:27 +00:00
Fix warning about use of API limited to support package
This commit is contained in:
parent
c44ae5888c
commit
0dc60debea
@ -180,7 +180,7 @@ public class MainActivity extends AppCompatActivity
|
|||||||
|
|
||||||
private void displayFragment(@NonNull Fragment navFragment, String tag, boolean setElevation) {
|
private void displayFragment(@NonNull Fragment navFragment, String tag, boolean setElevation) {
|
||||||
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
|
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
|
||||||
invalidateOptionsMenu();
|
supportInvalidateOptionsMenu();
|
||||||
transaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
|
transaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
|
||||||
transaction.replace(R.id.content_frame, navFragment, tag).commitNow();
|
transaction.replace(R.id.content_frame, navFragment, tag).commitNow();
|
||||||
if (setElevation) toolbar.setElevation(toolbarElevation);
|
if (setElevation) toolbar.setElevation(toolbarElevation);
|
||||||
|
Loading…
Reference in New Issue
Block a user