Android: Remove the use of restericted API and give AS a break

This commit is contained in:
mahdihijazi 2018-10-29 21:52:29 +01:00
parent fe9212a515
commit 9a45c62896
1 changed files with 1 additions and 5 deletions

View File

@ -173,11 +173,7 @@ public final class EmulationActivity extends AppCompatActivity
launcher.putExtra(EXTRA_SELECTED_GAME, gameFile.getPath()); launcher.putExtra(EXTRA_SELECTED_GAME, gameFile.getPath());
launcher.putExtra(EXTRA_SELECTED_TITLE, gameFile.getTitle()); launcher.putExtra(EXTRA_SELECTED_TITLE, gameFile.getTitle());
launcher.putExtra(EXTRA_PLATFORM, gameFile.getPlatform()); launcher.putExtra(EXTRA_PLATFORM, gameFile.getPlatform());
Bundle options = new Bundle(); activity.startActivityForResult(launcher, MainPresenter.REQUEST_EMULATE_GAME);
// I believe this warning is a bug. Activities are FragmentActivity from the support lib
//noinspection RestrictedApi
activity.startActivityForResult(launcher, MainPresenter.REQUEST_EMULATE_GAME, options);
} }
@Override @Override