diff options
| author | Rajeev Kumar <rajekumar@google.com> | 2020-02-04 19:54:30 -0800 |
|---|---|---|
| committer | Rajeev Kumar <rajekumar@google.com> | 2020-02-18 15:50:27 -0800 |
| commit | bc79dcd87b95f4332d9319dd2230f18f49dcf9cb (patch) | |
| tree | 9c6a637397ce13d057a891d8c40237d5de1dd8d3 /core/java/android/app/NotificationManager.java | |
| parent | b1fa029b6cb34df643a1c42aa35e14029246b34f (diff) | |
Framework changes to enable Notification listeners on Android Go.
Bug: 148575561
Test: atest
com.android.server.notification.NotificationManagerServiceTest, atest com.android.server.notification.NotificationTest
Change-Id: I1b24b2c8e9c6dd96dcd7be209bae2df7c0ed76b5
Diffstat (limited to 'core/java/android/app/NotificationManager.java')
| -rw-r--r-- | core/java/android/app/NotificationManager.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/java/android/app/NotificationManager.java b/core/java/android/app/NotificationManager.java index 528b508cecb1..88edb05ba968 100644 --- a/core/java/android/app/NotificationManager.java +++ b/core/java/android/app/NotificationManager.java @@ -592,10 +592,7 @@ public class NotificationManager { } notification.reduceImageSizes(mContext); - - ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); - boolean isLowRam = am.isLowRamDevice(); - return Builder.maybeCloneStrippedForDelivery(notification, isLowRam, mContext); + return Builder.maybeCloneStrippedForDelivery(notification); } private void fixLegacySmallIcon(Notification n, String pkg) { |
