@@ -1052,7 +1052,7 @@ public void shouldCorrectlyRemoveOpenedHandlerAndFireMissedOnesWhenAddedBack() t
1052
1052
OneSignal .setNotificationOpenedHandler (getNotificationOpenedHandler ());
1053
1053
threadAndTaskWait ();
1054
1054
1055
- OneSignal .removeNotificationOpenedHandler ( );
1055
+ OneSignal .setNotificationOpenedHandler ( null );
1056
1056
OneSignal_handleNotificationOpen (blankActivity , new JSONArray ("[{ \" alert\" : \" Robo test message\" , \" custom\" : { \" i\" : \" UUID\" } }]" ), false , ONESIGNAL_NOTIFICATION_ID );
1057
1057
assertNull (lastNotificationOpenedBody );
1058
1058
@@ -2739,8 +2739,8 @@ public void onSuccess(JSONObject response) {}
2739
2739
@ Override
2740
2740
public void onFailure (JSONObject response ) {}
2741
2741
});
2742
- OneSignal .removeNotificationOpenedHandler ( );
2743
- OneSignal .removeNotificationWillShowInForegroundHandler ( );
2742
+ OneSignal .setNotificationOpenedHandler ( null );
2743
+ OneSignal .setNotificationWillShowInForegroundHandler ( null );
2744
2744
threadAndTaskWait ();
2745
2745
2746
2746
// Permission subscription wont return until OneSignal init is done
@@ -2771,8 +2771,8 @@ public void onSuccess(JSONObject response) {}
2771
2771
@ Override
2772
2772
public void onFailure (JSONObject response ) {}
2773
2773
});
2774
- OneSignal .removeNotificationOpenedHandler ( );
2775
- OneSignal .removeNotificationWillShowInForegroundHandler ( );
2774
+ OneSignal .setNotificationOpenedHandler ( null );
2775
+ OneSignal .setNotificationWillShowInForegroundHandler ( null );
2776
2776
threadAndTaskWait ();
2777
2777
2778
2778
// TODO change to assertNull(OneSignal.getPermissionSubscriptionState()); when privacy consent public set is removed
@@ -2801,8 +2801,8 @@ public void onSuccess(JSONObject response) {}
2801
2801
@ Override
2802
2802
public void onFailure (JSONObject response ) {}
2803
2803
});
2804
- OneSignal .removeNotificationOpenedHandler ( );
2805
- OneSignal .removeNotificationWillShowInForegroundHandler ( );
2804
+ OneSignal .setNotificationOpenedHandler ( null );
2805
+ OneSignal .setNotificationWillShowInForegroundHandler ( null );
2806
2806
threadAndTaskWait ();
2807
2807
2808
2808
assertNull (OneSignal .getPermissionSubscriptionState ());
@@ -2831,8 +2831,8 @@ public void onSuccess(JSONObject response) {}
2831
2831
@ Override
2832
2832
public void onFailure (JSONObject response ) {}
2833
2833
});
2834
- OneSignal .removeNotificationOpenedHandler ( );
2835
- OneSignal .removeNotificationWillShowInForegroundHandler ( );
2834
+ OneSignal .setNotificationOpenedHandler ( null );
2835
+ OneSignal .setNotificationWillShowInForegroundHandler ( null );
2836
2836
threadAndTaskWait ();
2837
2837
2838
2838
assertNull (OneSignal .getPermissionSubscriptionState ());
0 commit comments