diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-06-30 01:08:12 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-06-30 01:08:12 +0000 |
commit | a71deb61ced0332d63c2bfa89b6c135a9a472215 (patch) | |
tree | ad8d4aa72f7f5c24180b32816d7e2e6239977dd3 | |
parent | acea3863ef7301c3273008ec55c41ff36a933a0b (diff) | |
parent | a1dfded1eb9334bd272755b20da8c28438e69e06 (diff) | |
download | tests-android12-d1-s1-release.tar.gz |
Snap for 7506386 from a1dfded1eb9334bd272755b20da8c28438e69e06 to sc-d1-releaseandroid-12.0.0_r7android-12.0.0_r6android-12.0.0_r5android-12.0.0_r4android-12.0.0_r15android-12.0.0_r14android-12.0.0_r13android-12.0.0_r12android12-d1-s6-releaseandroid12-d1-s5-releaseandroid12-d1-s4-releaseandroid12-d1-s3-releaseandroid12-d1-s2-releaseandroid12-d1-s1-releaseandroid12-d1-release
Change-Id: Id3b30d2ce93194c035739e0ca64e5edb02e04fde
-rw-r--r-- | RotaryPlayground/src/com/android/car/rotaryplayground/HeadsUpNotificationFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RotaryPlayground/src/com/android/car/rotaryplayground/HeadsUpNotificationFragment.java b/RotaryPlayground/src/com/android/car/rotaryplayground/HeadsUpNotificationFragment.java index 0744ac0..97c676e 100644 --- a/RotaryPlayground/src/com/android/car/rotaryplayground/HeadsUpNotificationFragment.java +++ b/RotaryPlayground/src/com/android/car/rotaryplayground/HeadsUpNotificationFragment.java @@ -62,7 +62,8 @@ public class HeadsUpNotificationFragment extends Fragment { */ private Notification createNotification() { Intent intent = new Intent(getContext(), RotaryActivity.class); - PendingIntent pendingIntent = PendingIntent.getActivity(getContext(), 0, intent, 0); + PendingIntent pendingIntent = + PendingIntent.getActivity(getContext(), 0, intent, PendingIntent.FLAG_IMMUTABLE); return new Notification.Builder(getContext(), NOTIFICATION_CHANNEL_ID) .setContentTitle("Example heads-up notification") .setContentText("Try nudging up to HUN") |