Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5fbb2143 authored by Jing Ji's avatar Jing Ji
Browse files

Update the bg app notification language per UX spec

Bug: 203105544
Test: Trigger the notification and review text.
Change-Id: I1ec5f3b8c79cdb2a74c6effdcc16907b58d6a06c
parent 923eb82c
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -6265,14 +6265,16 @@ ul.</string>
    <!-- Title for the notification channel notifying user of abusive background apps. [CHAR LIMIT=NONE] -->
    <string name="notification_channel_abusive_bg_apps">Background Activity</string>
    <!-- Title of notification indicating abusive background apps. [CHAR LIMIT=NONE] -->
    <string name="notification_title_abusive_bg_apps">Background Activity</string>
    <string name="notification_title_abusive_bg_apps">An app is using battery</string>
    <!-- Title of notification indicating long running foreground services. [CHAR LIMIT=NONE] -->
    <string name="notification_title_long_running_fgs">An app is still active</string>
    <!-- Content of notification indicating abusive background apps. [CHAR LIMIT=NONE] -->
    <string name="notification_content_abusive_bg_apps">
        <xliff:g id="app" example="Gmail">%1$s</xliff:g> is running in the background and draining battery. Tap to review.
        <xliff:g id="app" example="Gmail">%1$s</xliff:g> is using battery in the background. Tap to review.
    </string>
    <!-- Content of notification indicating long running foreground service. [CHAR LIMIT=NONE] -->
    <string name="notification_content_long_running_fgs">
        <xliff:g id="app" example="Gmail">%1$s</xliff:g> is running in the background for a long time. Tap to review.
        <xliff:g id="app" example="Gmail">%1$s</xliff:g> might affect battery life. Tap to review active apps.
    </string>
    <!-- Action label of notification for user to check background apps. [CHAR LIMIT=NONE]  -->
    <string name="notification_action_check_bg_apps">Check active apps</string>
+1 −0
Original line number Diff line number Diff line
@@ -4742,6 +4742,7 @@

  <java-symbol type="string" name="notification_channel_abusive_bg_apps"/>
  <java-symbol type="string" name="notification_title_abusive_bg_apps"/>
  <java-symbol type="string" name="notification_title_long_running_fgs"/>
  <java-symbol type="string" name="notification_content_abusive_bg_apps"/>
  <java-symbol type="string" name="notification_content_long_running_fgs"/>
  <java-symbol type="string" name="notification_action_check_bg_apps"/>
+1 −1
Original line number Diff line number Diff line
@@ -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);
        }