From 5fbb2143385dac8d5320dd6e8705429f27baea50 Mon Sep 17 00:00:00 2001 From: Jing Ji Date: Wed, 30 Mar 2022 15:13:42 -0700 Subject: [PATCH] Update the bg app notification language per UX spec Bug: 203105544 Test: Trigger the notification and review text. Change-Id: I1ec5f3b8c79cdb2a74c6effdcc16907b58d6a06c --- core/res/res/values/strings.xml | 8 +++++--- core/res/res/values/symbols.xml | 1 + .../com/android/server/am/AppRestrictionController.java | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index f11fd92c20c26..4866f55db7927 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -6265,14 +6265,16 @@ ul. Background Activity - Background Activity + An app is using battery + + An app is still active - %1$s is running in the background and draining battery. Tap to review. + %1$s is using battery in the background. Tap to review. - %1$s is running in the background for a long time. Tap to review. + %1$s might affect battery life. Tap to review active apps. Check active apps diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index bb9142a56db31..e08f67b5e861a 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -4742,6 +4742,7 @@ + diff --git a/services/core/java/com/android/server/am/AppRestrictionController.java b/services/core/java/com/android/server/am/AppRestrictionController.java index b8fb9e85ac08b..2288e091e9b6f 100644 --- a/services/core/java/com/android/server/am/AppRestrictionController.java +++ b/services/core/java/com/android/server/am/AppRestrictionController.java @@ -1726,7 +1726,7 @@ public final class AppRestrictionController { } postNotificationIfNecessary(NOTIFICATION_TYPE_LONG_RUNNING_FGS, - com.android.internal.R.string.notification_title_abusive_bg_apps, + com.android.internal.R.string.notification_title_long_running_fgs, com.android.internal.R.string.notification_content_long_running_fgs, pendingIntent, packageName, uid, null); }