Change PendingIntentProvider call
This commit is contained in:
+2
-5
@@ -84,11 +84,8 @@ public class BraveOnboardingNotification extends BroadcastReceiver {
|
||||
public static PendingIntentProvider getDeepLinkIntent(Context context) {
|
||||
Intent intent = new Intent(context, BraveOnboardingNotification.class);
|
||||
intent.setAction(DEEP_LINK);
|
||||
return new PendingIntentProvider(
|
||||
PendingIntent.getBroadcast(context, 0, intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT
|
||||
| IntentUtils.getPendingIntentMutabilityFlag(true)),
|
||||
0, 0);
|
||||
return PendingIntentProvider.getBroadcast(context, 0, intent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -151,7 +151,7 @@ public class BraveSetDefaultBrowserNotificationService extends BroadcastReceiver
|
||||
intent.putExtra(NOTIFICATION_ID_EXTRA, notification_id);
|
||||
|
||||
return PendingIntent.getBroadcast(context, notification_id, intent,
|
||||
0 | IntentUtils.getPendingIntentMutabilityFlag(true));
|
||||
IntentUtils.getPendingIntentMutabilityFlag(true));
|
||||
}
|
||||
|
||||
private boolean hasAskedAt1122() {
|
||||
|
||||
@@ -17,6 +17,7 @@ import android.view.View;
|
||||
|
||||
import androidx.core.app.NotificationCompat;
|
||||
|
||||
import org.chromium.base.IntentUtils;
|
||||
import org.chromium.base.Log;
|
||||
import org.chromium.base.ThreadUtils;
|
||||
import org.chromium.chrome.R;
|
||||
@@ -63,7 +64,7 @@ public class NotificationIntent {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(URL));
|
||||
intent.putExtra(BravePreferenceKeys.BRAVE_UPDATE_EXTRA_PARAM, true);
|
||||
intent.setPackage(context.getPackageName());
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, IntentUtils.getPendingIntentMutabilityFlag(true));
|
||||
|
||||
mBuilder.setContentIntent(pendingIntent);
|
||||
mBuilder.setAutoCancel(true);
|
||||
|
||||
Reference in New Issue
Block a user