OSDN Git Service

FBE notification improvements
authorJim Miller <jaggies@google.com>
Fri, 29 Jan 2016 00:43:44 +0000 (16:43 -0800)
committerJim Miller <jaggies@google.com>
Fri, 29 Jan 2016 01:03:16 +0000 (17:03 -0800)
- change language for FBE "account locked" notification
- use lock icon

Fixes bug 26863154

Change-Id: I1cf2e230cf717cadd26879a90fdccbade59057a8

core/res/res/values/strings.xml
services/core/java/com/android/server/LockSettingsService.java

index b2eab4c..26421fb 100644 (file)
     <string name="new_sms_notification_content">Open SMS app to view</string>
 
     <!-- Notification title shown when user profile is credential encrypted and requires the user to unlock before some features are usable [CHAR LIMIT=30] -->
-    <string name="user_encrypted_title">Device encrypted</string>
+    <string name="user_encrypted_title">Some functions might not be available</string>
     <!-- Notification message shown when user profile is credential encrypted and requires the user to unlock before some features are usable [CHAR LIMIT=30] -->
-    <string name="user_encrypted_message">Some functions might not be available</string>
+    <string name="user_encrypted_message">Touch to continue</string>
     <!-- Notification detail shown when user profile is credential encrypted and requires the user to unlock before some features are usable [CHAR LIMIT=30] -->
-    <string name="user_encrypted_detail">Touch to continue</string>
+    <string name="user_encrypted_detail">User profile locked</string>
 
 </resources>
index e9f0a7a..d0cd536 100644 (file)
@@ -200,7 +200,7 @@ public class LockSettingsService extends ILockSettings.Stub {
                 PendingIntent.FLAG_UPDATE_CURRENT);
 
         Notification notification = new Notification.Builder(mContext)
-                .setSmallIcon(com.android.internal.R.drawable.stat_sys_warning)
+                .setSmallIcon(com.android.internal.R.drawable.ic_secure)
                 .setWhen(0)
                 .setOngoing(true)
                 .setTicker(title)