Merge "Only show graphics driver option when the apk is available." into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-03-01 04:42:02 +00:00
committed by Android (Google) Code Review
5 changed files with 82 additions and 30 deletions

View File

@@ -82,6 +82,8 @@ public class GraphicsDriverEnableForAllAppsPreferenceControllerTest {
mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT);
mController = new GraphicsDriverEnableForAllAppsPreferenceController(mContext, "testKey");
mController.mEntryList = mContext.getResources().getStringArray(
R.array.graphics_driver_all_apps_preference_values);
when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference);
mController.displayPreference(mScreen);
}