From 82dc52376a4e40f265e3be2ed9320eb55bc43192 Mon Sep 17 00:00:00 2001 From: Varun Shah Date: Tue, 16 May 2023 01:51:17 +0000 Subject: [PATCH] Hide "Long Background Tasks" page from Settings. Since the RUN_USER_INITIATED_JOBS permission is no longer a special permission, the related page in Settings should be hidden. Bug: 282824927 Test: page hidden from Special App Access screen. Change-Id: I51d681f97247be45654dd2eb12df08f429a43938 --- res/xml/app_info_settings.xml | 2 ++ res/xml/special_access.xml | 2 ++ .../applications/ApplicationFeatureProviderImpl.java | 10 ++++------ .../applications/LongBackgroundTaskController.java | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/res/xml/app_info_settings.xml b/res/xml/app_info_settings.xml index d8af0092819..73241b705f4 100644 --- a/res/xml/app_info_settings.xml +++ b/res/xml/app_info_settings.xml @@ -193,6 +193,8 @@ android:key="long_background_tasks" android:title="@string/long_background_tasks_title" android:summary="@string/summary_placeholder" + settings:isPreferenceVisible="false" + settings:searchable="false" settings:controller="com.android.settings.applications.appinfo.LongBackgroundTasksDetailsPreferenceController" /> diff --git a/res/xml/special_access.xml b/res/xml/special_access.xml index 2fb4af46825..b3f3f7dd5da 100644 --- a/res/xml/special_access.xml +++ b/res/xml/special_access.xml @@ -128,6 +128,8 @@ android:title="@string/long_background_tasks_title" android:order="-800" android:fragment="com.android.settings.applications.manageapplications.ManageApplications" + settings:isPreferenceVisible="false" + settings:searchable="false" settings:keywords="@string/keywords_long_background_tasks" settings:controller="com.android.settings.applications.specialaccess.applications.LongBackgroundTaskController">