diff --git a/res/values/strings.xml b/res/values/strings.xml index f8963318819..bd2015de966 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -731,13 +731,7 @@ Security status - Screen lock, face unlock - - Screen lock, fingerprint - - Screen lock - - Screen lock, biometric unlock, app security + Screen lock, Find My Device, app security @@ -10783,16 +10777,7 @@ Sleep after %1$s of inactivity - Wallpaper, sleep, font size - - - Styles, wallpapers, screen timeout, font size - - - Screen timeout, font size - - - Sleep, font size + Screen timeout, font size Sleep after 10 minutes of inactivity diff --git a/res/xml/top_level_settings_grouped.xml b/res/xml/top_level_settings_grouped.xml index 6c03380b3e5..7b4f8a10773 100644 --- a/res/xml/top_level_settings_grouped.xml +++ b/res/xml/top_level_settings_grouped.xml @@ -86,7 +86,7 @@ android:key="top_level_display" android:order="-80" android:title="@string/display_settings" - android:summary="@string/summary_placeholder" + android:summary="@string/display_dashboard_summary" settings:controller="com.android.settings.display.TopLevelDisplayPreferenceController"/> resolveInfos = new ArrayList<>(); - resolveInfos.add(mock(ResolveInfo.class)); - when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) - .thenReturn(resolveInfos); - - assertThat(mController.getSummary()) - .isEqualTo(mContext.getText(R.string.display_dashboard_summary)); - } - - @Test - public void getSummary_hasWallpaperWithStyles_shouldReturnWallpaperSummary() { - when(mContext.getString(R.string.config_styles_and_wallpaper_picker_class)) - .thenReturn("any.nonempty.class"); - final List resolveInfos = new ArrayList<>(); - resolveInfos.add(mock(ResolveInfo.class)); - when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) - .thenReturn(resolveInfos); - - assertThat(mController.getSummary()) - .isEqualTo(mContext.getText(R.string.display_dashboard_summary_with_style)); - } - - @Test - public void getSummary_hasWallpaper_shouldReturnNoWallpaperSummary() { - final List resolveInfos = new ArrayList<>(); - when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) - .thenReturn(resolveInfos); - - assertThat(mController.getSummary()) - .isEqualTo(mContext.getText(R.string.display_dashboard_nowallpaper_summary)); - } }