Hook up the Games storage category preference to a games view.

This patch adds functionality for the soon-to-be-deprecated games
and the new app categorization.

Bug: 33199077
Test: settings robo
Change-Id: Iae055c6f1b4d1af3f51aba9897c140ae7aac41c9
This commit is contained in:
Daniel Nishi
2017-01-11 17:50:02 -08:00
parent 6cf09db10e
commit c208eff2f8
5 changed files with 47 additions and 2 deletions

View File

@@ -122,7 +122,8 @@ public class StorageItemPreferenceController extends PreferenceController
intent = getAudioIntent();
break;
case GAME_KEY:
// TODO: Once app categorization is added, make this section.
intent = getGamesIntent();
break;
case OTHER_APPS_KEY:
// Because we are likely constructed with a null volume, this is theoretically
// possible.
@@ -259,6 +260,15 @@ public class StorageItemPreferenceController extends PreferenceController
false);
}
private Intent getGamesIntent() {
Bundle args = new Bundle(1);
args.putString(ManageApplications.EXTRA_CLASSNAME,
Settings.GamesStorageActivity.class.getName());
return Utils.onBuildStartFragmentIntent(mContext,
ManageApplications.class.getName(), args, null, R.string.game_storage_settings,
null, false);
}
private Intent getFilesIntent() {
return mSvp.findEmulatedForPrivate(mVolume).buildBrowseIntent();
}