summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Studer <chstuder@google.com>2014-09-02 14:59:32 +0200
committerChristoph Studer <chstuder@google.com>2014-09-02 17:54:17 +0200
commit223f44e1d2cc56fa965cdb9f112afae1c498cbbd (patch)
treec084211758fda146f4f57aed3ee84708b52140e2
parent192ba20d2a120356d8c046e92c80065f89e2eac2 (diff)
downloadframeworks_base-223f44e1d2cc56fa965cdb9f112afae1c498cbbd.zip
frameworks_base-223f44e1d2cc56fa965cdb9f112afae1c498cbbd.tar.gz
frameworks_base-223f44e1d2cc56fa965cdb9f112afae1c498cbbd.tar.bz2
NoMan: Drop archive size to 100, strip EXTRA_BIG_TEXT
Bug: 15557701 Change-Id: I348b9648dbb941b2fa40b169d5ca82b9f9ba21f4
-rw-r--r--core/java/android/app/Notification.java1
-rw-r--r--core/java/android/service/notification/NotificationListenerService.java1
-rw-r--r--core/res/res/values/config.xml2
3 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 800734a..6cc6fb2 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -1423,6 +1423,7 @@ public class Notification implements Parcelable
extras.remove(Notification.EXTRA_LARGE_ICON);
extras.remove(Notification.EXTRA_LARGE_ICON_BIG);
extras.remove(Notification.EXTRA_PICTURE);
+ extras.remove(Notification.EXTRA_BIG_TEXT);
// Prevent light notifications from being rebuilt.
extras.remove(Builder.EXTRA_NEEDS_REBUILD);
}
diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java
index cb0bcf2..fc12101 100644
--- a/core/java/android/service/notification/NotificationListenerService.java
+++ b/core/java/android/service/notification/NotificationListenerService.java
@@ -101,6 +101,7 @@ public abstract class NotificationListenerService extends Service {
* <li>{@link Notification#EXTRA_LARGE_ICON extras[EXTRA_LARGE_ICON]}</li>
* <li>{@link Notification#EXTRA_LARGE_ICON_BIG extras[EXTRA_LARGE_ICON_BIG]}</li>
* <li>{@link Notification#EXTRA_PICTURE extras[EXTRA_PICTURE]}</li>
+ * <li>{@link Notification#EXTRA_BIG_TEXT extras[EXTRA_BIG_TEXT]}</li>
* </ol>
*
* @hide
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index af213ba..853d02e 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -628,7 +628,7 @@
<integer name="config_notificationsBatteryLedOff">2875</integer>
<!-- Number of notifications to keep in the notification service historical archive -->
- <integer name="config_notificationServiceArchiveSize">250</integer>
+ <integer name="config_notificationServiceArchiveSize">100</integer>
<!-- Allow the menu hard key to be disabled in LockScreen on some devices -->
<bool name="config_disableMenuKeyInLockScreen">false</bool>