Fix strings in PlatformCompatDashboard
Be more specific, by referring to 'target SDK', instead of just 'SDK'. Test: atest PlatformCompatDashboardTest Bug: 138280620 Change-Id: Ied8dd5d682ed20962040bf81e9b3b3b45166ea46
This commit is contained in:
@@ -105,6 +105,7 @@ public class PlatformCompatDashboardTest {
|
||||
mDashboard = spy(new PlatformCompatDashboard());
|
||||
mDashboard.mSelectedApp = APP_NAME;
|
||||
doReturn(mApplicationInfo).when(mDashboard).getApplicationInfo();
|
||||
doReturn(mContext).when(mDashboard).getContext();
|
||||
doReturn(mPlatformCompat).when(mDashboard).getPlatformCompat();
|
||||
doReturn(mPreferenceScreen).when(mDashboard).getPreferenceScreen();
|
||||
doReturn(mPreferenceManager).when(mDashboard).getPreferenceManager();
|
||||
@@ -130,7 +131,8 @@ public class PlatformCompatDashboardTest {
|
||||
|
||||
Preference appPreference = mDashboard.createAppPreference(mApplicationInfo);
|
||||
|
||||
assertThat(appPreference.getSummary()).isEqualTo(APP_NAME + " SDK 1");
|
||||
assertThat(appPreference.getSummary()).isEqualTo(mContext.getResources().getString(
|
||||
R.string.platform_compat_selected_app_summary, APP_NAME, 1));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user