Loading packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java +10 −4 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.systemui.power; package com.android.systemui.power; import static android.app.PendingIntent.FLAG_IMMUTABLE; import android.app.KeyguardManager; import android.app.KeyguardManager; import android.app.Notification; import android.app.Notification; import android.app.NotificationManager; import android.app.NotificationManager; Loading Loading @@ -334,10 +336,14 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI { } } private PendingIntent pendingBroadcast(String action) { private PendingIntent pendingBroadcast(String action) { return PendingIntent.getBroadcastAsUser(mContext, 0, return PendingIntent.getBroadcastAsUser( new Intent(action).setPackage(mContext.getPackageName()) mContext, 0 /* request code */, new Intent(action) .setPackage(mContext.getPackageName()) .setFlags(Intent.FLAG_RECEIVER_FOREGROUND), .setFlags(Intent.FLAG_RECEIVER_FOREGROUND), 0, UserHandle.CURRENT); FLAG_IMMUTABLE /* flags */, UserHandle.CURRENT); } } private static Intent settings(String action) { private static Intent settings(String action) { Loading Loading
packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java +10 −4 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.systemui.power; package com.android.systemui.power; import static android.app.PendingIntent.FLAG_IMMUTABLE; import android.app.KeyguardManager; import android.app.KeyguardManager; import android.app.Notification; import android.app.Notification; import android.app.NotificationManager; import android.app.NotificationManager; Loading Loading @@ -334,10 +336,14 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI { } } private PendingIntent pendingBroadcast(String action) { private PendingIntent pendingBroadcast(String action) { return PendingIntent.getBroadcastAsUser(mContext, 0, return PendingIntent.getBroadcastAsUser( new Intent(action).setPackage(mContext.getPackageName()) mContext, 0 /* request code */, new Intent(action) .setPackage(mContext.getPackageName()) .setFlags(Intent.FLAG_RECEIVER_FOREGROUND), .setFlags(Intent.FLAG_RECEIVER_FOREGROUND), 0, UserHandle.CURRENT); FLAG_IMMUTABLE /* flags */, UserHandle.CURRENT); } } private static Intent settings(String action) { private static Intent settings(String action) { Loading