You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OneSignalSDK/app/src/main/java/com/onesignal/example/MainActivity.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,8 @@ public void onUnsubscribeClicked(View v) {
103
103
@Override
104
104
protectedvoidonPause() {
105
105
super.onPause();
106
-
mHelper.dispose();
106
+
if (mHelper != null)
107
+
mHelper.dispose();
107
108
}
108
109
109
110
@Override
@@ -135,7 +136,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
135
136
}
136
137
137
138
// NotificationOpenedHandler is implemented in its own class instead of adding implements to MainActivity so we don't hold on to a reference of our first activity if it gets recreated.
0 commit comments