From 111004958d6ebd7c6e6a5ec56cadefce6a82d175 Mon Sep 17 00:00:00 2001 From: Yi Jiang Date: Fri, 11 Dec 2020 15:12:13 -0800 Subject: [PATCH] Grays out Screen Timeout Setting when disabled. Previously we would hide the screen timeout setting when it is disabled by admin. Instead of hide it in Display Settings, now we gray it out and also provide the info of the enforced admin. Bug: 174834978 Test: manually Change-Id: Idaa3c4512eb648b67fcf6df2996c771a2f1b9617 --- res/xml/display_settings.xml | 2 +- .../ScreenTimeoutPreferenceController.java | 46 +++++++++++-------- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml index 07564f0b1d1..8262bb29316 100644 --- a/res/xml/display_settings.xml +++ b/res/xml/display_settings.xml @@ -63,7 +63,7 @@ -