From fd0c472bdcc135d0965497f20f9d0ef5d1f9b49d Mon Sep 17 00:00:00 2001 From: jackqdyulei Date: Tue, 7 Aug 2018 15:12:54 -0700 Subject: [PATCH] Disable bg restriction for "Disallow apps control" Use RestrictedPreference so it could handle it automatically Change-Id: Ibf58934639677b88316366b2e00790f9556d0966 Fixes: 64474641 Test: Robotests --- res/xml/power_usage_detail.xml | 9 +++-- ...ackgroundActivityPreferenceController.java | 6 ++++ ...roundActivityPreferenceControllerTest.java | 35 ++++++++++++------- 3 files changed, 35 insertions(+), 15 deletions(-) diff --git a/res/xml/power_usage_detail.xml b/res/xml/power_usage_detail.xml index 0493a51799c..1891702b6eb 100644 --- a/res/xml/power_usage_detail.xml +++ b/res/xml/power_usage_detail.xml @@ -15,7 +15,9 @@ limitations under the License. --> - + - + android:selectable="true" + settings:userRestriction="no_control_apps"/>