Skip to content

Commit

Permalink
lint: restrictedApi
Browse files Browse the repository at this point in the history
AppCompatActivity.onPrepareOptionsPanel is restricted to
com.android.support since support version 25 .. error suppressed; this
call is used to force display of icons in the overflow menu.
  • Loading branch information
forrestguice committed Nov 19, 2017
1 parent d9e478b commit 0d662ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ public boolean onCreateOptionsMenu(Menu menu)
return true;
}

@SuppressWarnings("RestrictedApi")
@Override
protected boolean onPrepareOptionsPanel(View view, Menu menu)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ public void onResume()
}
}

@SuppressWarnings("RestrictedApi")
@Override
protected boolean onPrepareOptionsPanel(View view, Menu menu)
{
Expand Down

0 comments on commit 0d662ab

Please sign in to comment.