Merge "Increase the number of notification items that can be shown in Notification history - Recently dismissed" into tm-qpr-dev am: 3852625699
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20331041 Change-Id: I038807ba1cd80bee01db6f66ef13f16ca97ec604 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -73,6 +73,10 @@ import java.util.concurrent.TimeUnit;
|
|||||||
public class NotificationHistoryActivity extends CollapsingToolbarBaseActivity {
|
public class NotificationHistoryActivity extends CollapsingToolbarBaseActivity {
|
||||||
|
|
||||||
private static String TAG = "NotifHistory";
|
private static String TAG = "NotifHistory";
|
||||||
|
// MAX_RECENT_DISMISS_ITEM_COUNT needs to be less or equals than
|
||||||
|
// R.integer.config_notificationServiceArchiveSize, which is the Number of notifications kept
|
||||||
|
// in the notification service historical archive
|
||||||
|
private static final int MAX_RECENT_DISMISS_ITEM_COUNT = 50;
|
||||||
|
|
||||||
private ViewGroup mHistoryOn;
|
private ViewGroup mHistoryOn;
|
||||||
private ViewGroup mHistoryOff;
|
private ViewGroup mHistoryOff;
|
||||||
@@ -388,7 +392,8 @@ public class NotificationHistoryActivity extends CollapsingToolbarBaseActivity {
|
|||||||
snoozed = getSnoozedNotifications();
|
snoozed = getSnoozedNotifications();
|
||||||
dismissed = mNm.getHistoricalNotificationsWithAttribution(
|
dismissed = mNm.getHistoricalNotificationsWithAttribution(
|
||||||
NotificationHistoryActivity.this.getPackageName(),
|
NotificationHistoryActivity.this.getPackageName(),
|
||||||
NotificationHistoryActivity.this.getAttributionTag(), 6, false);
|
NotificationHistoryActivity.this.getAttributionTag(),
|
||||||
|
MAX_RECENT_DISMISS_ITEM_COUNT, false);
|
||||||
} catch (SecurityException | RemoteException e) {
|
} catch (SecurityException | RemoteException e) {
|
||||||
Log.d(TAG, "OnPaused called while trying to retrieve notifications");
|
Log.d(TAG, "OnPaused called while trying to retrieve notifications");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user