diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index a7e02eea585dd..5f390b26ea5d1 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -4924,6 +4924,8 @@
You set the importance of these notifications.
This is important because of the people involved.
+ Custom app notification
+
Allow %1$s to create a new User with %2$s (a User with this account already exists) ?
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index 3399d1466935b..61e4000ab49ed 100644
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -3907,4 +3907,7 @@
+
+
+
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index e6fa610386455..c40f1b65573dc 100755
--- a/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -570,17 +570,17 @@ public class NotificationManagerService extends SystemService {
public StatusBarNotification[] getArray(int count, boolean includeSnoozed) {
if (count == 0) count = mBufferSize;
- final StatusBarNotification[] a
- = new StatusBarNotification[Math.min(count, mBuffer.size())];
+ List a = new ArrayList();
Iterator> iter = descendingIterator();
int i=0;
while (iter.hasNext() && i < count) {
Pair pair = iter.next();
if (pair.second != REASON_SNOOZED || includeSnoozed) {
- a[i++] = pair.first;
+ i++;
+ a.add(pair.first);
}
}
- return a;
+ return a.toArray(new StatusBarNotification[a.size()]);
}
}
@@ -2697,8 +2697,13 @@ public class NotificationManagerService extends SystemService {
CharSequence title = null;
if (n.extras != null) {
title = n.extras.getCharSequence(Notification.EXTRA_TITLE);
+ if (title == null) {
+ title = n.extras.getCharSequence(Notification.EXTRA_TITLE_BIG);
+ }
}
- return title == null? null : String.valueOf(title);
+ return title == null ? getContext().getResources().getString(
+ com.android.internal.R.string.notification_history_title_placeholder)
+ : String.valueOf(title);
}
/**