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:
Andrei Onea
2019-12-09 14:24:11 +00:00
parent c8e4d7953e
commit e2f4619602
3 changed files with 10 additions and 7 deletions

View File

@@ -228,9 +228,8 @@ public class PlatformCompatDashboard extends DashboardFragment {
final Drawable icon = applicationInfo.loadIcon(context.getPackageManager());
final Preference appPreference = new Preference(context);
appPreference.setIcon(icon);
appPreference.setSummary(mSelectedApp
+ " SDK "
+ applicationInfo.targetSdkVersion);
appPreference.setSummary(getString(R.string.platform_compat_selected_app_summary,
mSelectedApp, applicationInfo.targetSdkVersion));
appPreference.setKey(mSelectedApp);
appPreference.setOnPreferenceClickListener(
preference -> {