From e5b9d366c1bfc3a7e575ea2211570a32dae695b2 Mon Sep 17 00:00:00 2001 From: phweiss Date: Fri, 17 Mar 2017 17:52:15 +0100 Subject: [PATCH] Finalize Strings and Icon for Network Logging Notification Replace network logging icon with generic info icon as the network logging icon will be deprecated. Bug: 36254499 Test: CtsVerifier > Managed Provisioning0 > Device Owner Tests > Network Logging UI Change-Id: I648f160c09761a007948491f5b4ca772beddad70 --- core/res/res/drawable/ic_info_outline.xml | 25 ++++++++++++++++ .../res/drawable/ic_qs_network_logging.xml | 29 ------------------- core/res/res/values/strings.xml | 12 ++++---- core/res/res/values/symbols.xml | 2 +- .../DevicePolicyManagerService.java | 4 ++- 5 files changed, 35 insertions(+), 37 deletions(-) create mode 100644 core/res/res/drawable/ic_info_outline.xml delete mode 100644 core/res/res/drawable/ic_qs_network_logging.xml diff --git a/core/res/res/drawable/ic_info_outline.xml b/core/res/res/drawable/ic_info_outline.xml new file mode 100644 index 0000000000000..a4a3e9aab2393 --- /dev/null +++ b/core/res/res/drawable/ic_info_outline.xml @@ -0,0 +1,25 @@ + + + + + diff --git a/core/res/res/drawable/ic_qs_network_logging.xml b/core/res/res/drawable/ic_qs_network_logging.xml deleted file mode 100644 index 9e08264156e6a..0000000000000 --- a/core/res/res/drawable/ic_qs_network_logging.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index d1c14e9760039..30b27781127b8 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -392,12 +392,12 @@ This indicates that a work profile has been deleted. [CHAR LIMIT=NONE]--> Your work profile is no longer available on this device. - - Network traffic is being monitored - - Tap to learn more + + Device is managed + + Your organization manages this device and may monitor network traffic. Tap for details. diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 0d4a407db242a..7201eaec0aaad 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -1239,12 +1239,12 @@ + - diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java index 0e6a54217e79b..a916672f8cb19 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java @@ -10800,12 +10800,14 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { UserHandle.CURRENT); Notification notification = new Notification.Builder(mContext, SystemNotificationChannels.DEVICE_ADMIN) - .setSmallIcon(R.drawable.ic_qs_network_logging) + .setSmallIcon(R.drawable.ic_info_outline) .setContentTitle(mContext.getString(R.string.network_logging_notification_title)) .setContentText(mContext.getString(R.string.network_logging_notification_text)) .setTicker(mContext.getString(R.string.network_logging_notification_title)) .setShowWhen(true) .setContentIntent(pendingIntent) + .setStyle(new Notification.BigTextStyle() + .bigText(mContext.getString(R.string.network_logging_notification_text))) .build(); mInjector.getNotificationManager().notify(NETWORK_LOGGING_NOTIFICATION_ID, notification); saveSettingsLocked(mOwners.getDeviceOwnerUserId());