@@ -347,23 +347,23 @@ private static void processCollapseKey(OSNotificationGenerationJob notificationJ
347
347
return ;
348
348
String collapse_id = notificationJob .getJsonPayload ().optString ("collapse_key" );
349
349
350
- OneSignalDbHelper dbHelper = OneSignalDbHelper .getInstance (notificationJob .getContext ());
351
- Cursor cursor = dbHelper .query (
352
- NotificationTable .TABLE_NAME ,
353
- new String []{NotificationTable .COLUMN_NAME_ANDROID_NOTIFICATION_ID }, // retColumn
354
- NotificationTable .COLUMN_NAME_COLLAPSE_ID + " = ? AND " +
355
- NotificationTable .COLUMN_NAME_DISMISSED + " = 0 AND " +
356
- NotificationTable .COLUMN_NAME_OPENED + " = 0 " ,
357
- new String []{collapse_id },
358
- null , null , null );
359
-
360
- if (cursor .moveToFirst ()) {
361
- int androidNotificationId = cursor .getInt (cursor .getColumnIndex (NotificationTable .COLUMN_NAME_ANDROID_NOTIFICATION_ID ));
362
- notificationJob .setAndroidIdWithoutOverriding (androidNotificationId );
363
- }
350
+ OneSignalDbHelper dbHelper = OneSignalDbHelper .getInstance (notificationJob .getContext ());
351
+ Cursor cursor = dbHelper .query (
352
+ NotificationTable .TABLE_NAME ,
353
+ new String []{NotificationTable .COLUMN_NAME_ANDROID_NOTIFICATION_ID }, // retColumn
354
+ NotificationTable .COLUMN_NAME_COLLAPSE_ID + " = ? AND " +
355
+ NotificationTable .COLUMN_NAME_DISMISSED + " = 0 AND " +
356
+ NotificationTable .COLUMN_NAME_OPENED + " = 0 " ,
357
+ new String []{collapse_id },
358
+ null , null , null );
359
+
360
+ if (cursor .moveToFirst ()) {
361
+ int androidNotificationId = cursor .getInt (cursor .getColumnIndex (NotificationTable .COLUMN_NAME_ANDROID_NOTIFICATION_ID ));
362
+ notificationJob .setAndroidIdWithoutOverriding (androidNotificationId );
363
+ }
364
364
365
- cursor .close ();
366
- }
365
+ cursor .close ();
366
+ }
367
367
368
368
/**
369
369
* Process bundle passed from FCM / HMS / ADM broadcast receiver
0 commit comments