Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: OneSignal/OneSignal-Android-SDK
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 33b9cc581e619afe3b6f444f7781f0a630815b6a
Choose a base ref
..
head repository: OneSignal/OneSignal-Android-SDK
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2320ee5a83ecc8f85bfd5db637af5d94ef547921
Choose a head ref
Original file line number Diff line number Diff line change
@@ -38,9 +38,10 @@ class BootUpReceiver : BroadcastReceiver() {
intent: Intent,
) {
// Return early if the action does not match expected action
if (intent.action != Intent.ACTION_BOOT_COMPLETED){
return
}
if (intent.action != Intent.ACTION_BOOT_COMPLETED)
{
return
}
if (!OneSignal.initWithContext(context)) {
return
}
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@
*/
package com.onesignal.notifications.receivers

import android.app.Notification.Action
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
@@ -42,9 +43,10 @@ class UpgradeReceiver : BroadcastReceiver() {
// testing and look at the issue but maybe someone has a answer or rems what directly
// was causing this issue
// Return early if the action does not match expected action
if (intent.action != Intent.ACTION_MY_PACKAGE_REPLACED){
if (intent.action != Intent.ACTION_MY_PACKAGE_REPLACED)
{
return
}
}
// Return early if using Android 7.0 due to upgrade restore crash (#263)
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.N) {
return