From a5f12c6b5ce5cafc1c957645108149ceaaca9728 Mon Sep 17 00:00:00 2001 From: Lenka Trochtova Date: Wed, 17 Jan 2018 11:05:30 +0100 Subject: [PATCH] Policy transparency for mandatory backups. Bug: 64012357 Test: manual Change-Id: I6f3dd294cca26fc0572ce6b8723a616902b1752f --- res/values/strings.xml | 2 ++ src/com/android/settings/ShowAdminSupportDetailsDialog.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index 164f6d5de29..7c1c8c131f1 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -8335,6 +8335,8 @@ Camera not allowed Screenshot not allowed + + Can\'t turn off backups This action is disabled. To learn more, contact your organization\'s admin. diff --git a/src/com/android/settings/ShowAdminSupportDetailsDialog.java b/src/com/android/settings/ShowAdminSupportDetailsDialog.java index c1cd6f567fb..321f93d10c3 100644 --- a/src/com/android/settings/ShowAdminSupportDetailsDialog.java +++ b/src/com/android/settings/ShowAdminSupportDetailsDialog.java @@ -150,6 +150,9 @@ public class ShowAdminSupportDetailsDialog extends Activity case DevicePolicyManager.POLICY_DISABLE_SCREEN_CAPTURE: titleView.setText(R.string.disabled_by_policy_title_screen_capture); break; + case DevicePolicyManager.POLICY_MANDATORY_BACKUPS: + titleView.setText(R.string.disabled_by_policy_title_turn_off_backups); + break; default: // Use general text if no specialized title applies titleView.setText(R.string.disabled_by_policy_title);