@@ -77,7 +77,7 @@ public Result doWork() {
77
77
StringBuilder dbQuerySelection = OneSignalDbHelper .recentUninteractedWithNotificationsWhere ();
78
78
skipVisibleNotifications (context , dbQuerySelection );
79
79
80
- queryAndRestoreNotificationsAndBadgeCount (context , dbHelper , dbQuerySelection , false );
80
+ queryAndRestoreNotificationsAndBadgeCount (context , dbHelper , dbQuerySelection );
81
81
82
82
return Result .success ();
83
83
}
@@ -87,8 +87,7 @@ public Result doWork() {
87
87
private static void queryAndRestoreNotificationsAndBadgeCount (
88
88
Context context ,
89
89
OneSignalDbHelper dbHelper ,
90
- StringBuilder dbQuerySelection ,
91
- boolean needsWorkerThread ) {
90
+ StringBuilder dbQuerySelection ) {
92
91
93
92
OneSignal .Log (OneSignal .LOG_LEVEL .INFO ,
94
93
"Querying DB for notifications to restore: " + dbQuerySelection .toString ());
@@ -105,7 +104,7 @@ private static void queryAndRestoreNotificationsAndBadgeCount(
105
104
OneSignalDbContract .NotificationTable ._ID + " DESC" , // sort order, new to old
106
105
NotificationLimitManager .MAX_NUMBER_OF_NOTIFICATIONS_STR // limit
107
106
);
108
- showNotificationsFromCursor (context , cursor , DELAY_BETWEEN_NOTIFICATION_RESTORES_MS , needsWorkerThread );
107
+ showNotificationsFromCursor (context , cursor , DELAY_BETWEEN_NOTIFICATION_RESTORES_MS , false );
109
108
BadgeCountUpdater .update (dbHelper , context );
110
109
} catch (Throwable t ) {
111
110
OneSignal .Log (OneSignal .LOG_LEVEL .ERROR , "Error restoring notification records! " , t );
0 commit comments