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/onesignal/notifications/src/main/java/com/onesignal/notifications/receivers/BootUpReceiver.kt
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -38,10 +38,9 @@ class BootUpReceiver : BroadcastReceiver() {
38
38
intent:Intent,
39
39
) {
40
40
// Return early if the action does not match expected action
41
-
if (intent.action !=Intent.ACTION_BOOT_COMPLETED)
42
-
{
43
-
return
44
-
}
41
+
if (intent.action !=Intent.ACTION_BOOT_COMPLETED) {
Copy file name to clipboardExpand all lines: OneSignalSDK/onesignal/notifications/src/main/java/com/onesignal/notifications/receivers/UpgradeReceiver.kt
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,6 @@
26
26
*/
27
27
packagecom.onesignal.notifications.receivers
28
28
29
-
importandroid.app.Notification.Action
30
29
importandroid.content.BroadcastReceiver
31
30
importandroid.content.Context
32
31
importandroid.content.Intent
@@ -43,10 +42,9 @@ class UpgradeReceiver : BroadcastReceiver() {
43
42
// testing and look at the issue but maybe someone has a answer or rems what directly
44
43
// was causing this issue
45
44
// Return early if the action does not match expected action
46
-
if (intent.action !=Intent.ACTION_MY_PACKAGE_REPLACED)
47
-
{
48
-
return
49
-
}
45
+
if (intent.action !=Intent.ACTION_MY_PACKAGE_REPLACED) {
46
+
return
47
+
}
50
48
// Return early if using Android 7.0 due to upgrade restore crash (#263)
51
49
if (Build.VERSION.SDK_INT==Build.VERSION_CODES.N) {
0 commit comments