File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -91,15 +91,9 @@ static void markLastNotificationReceived(@Nullable String notificationId) {
91
91
// If the attribution window increases, old notifications ids might influence the session
92
92
if (notificationsReceived .length () > notificationLimit ) {
93
93
int lengthDifference = notificationsReceived .length () - notificationLimit ;
94
- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT ) {
95
- for (int i = 0 ; i < lengthDifference ; i ++) {
96
- notificationsReceived .remove (i );
97
- }
98
- } else {
99
- notificationsToSave = new JSONArray ();
100
- for (int i = lengthDifference ; i < notificationsReceived .length (); i ++) {
101
- notificationsToSave .put (notificationsReceived .get (i ));
102
- }
94
+ notificationsToSave = new JSONArray ();
95
+ for (int i = lengthDifference ; i < notificationsReceived .length (); i ++) {
96
+ notificationsToSave .put (notificationsReceived .get (i ));
103
97
}
104
98
}
105
99
You can’t perform that action at this time.
0 commit comments