Skip to content

Commit

Permalink
Android: Remove the use of restericted API and give AS a break
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdihijazi committed Oct 29, 2018
1 parent fe9212a commit 9a45c62
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -173,11 +173,7 @@ public static void launch(FragmentActivity activity, GameFile gameFile)
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
Expand Down

0 comments on commit 9a45c62

Please sign in to comment.