From c485487ac5469def39fa7307f9ff907ccde3f2b6 Mon Sep 17 00:00:00 2001 From: Oleksandr Peletskyi Date: Tue, 5 Apr 2016 15:37:07 +0200 Subject: [PATCH] Improved UX when DISALLOW_SET_WALLPAPER is set. Changed type of Settings > Display > Wallpeper menu item to RestrictedPreference. This allows to show the reason, why the Wallpaper menu item is blocked. BUG: 27914814 Change-Id: I6eb23ec9fcaa39bb7e45d020a5aaca0d83cef81f --- res/xml/display_settings.xml | 5 ++-- src/com/android/settings/DisplaySettings.java | 24 ++++++++++--------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml index c19f8d9349d..54b17d3befa 100644 --- a/res/xml/display_settings.xml +++ b/res/xml/display_settings.xml @@ -41,11 +41,12 @@ android:entries="@array/night_mode_entries" android:entryValues="@array/night_mode_values" /> --> - + android:fragment="com.android.settings.WallpaperTypeSettings" + settings:useAdminDisabledSummary="true" />