diff options
author | John Shao <johnshao@google.com> | 2021-10-27 22:22:46 +0000 |
---|---|---|
committer | John Shao <johnshao@google.com> | 2021-10-27 22:23:11 +0000 |
commit | c866ad472f3261db3e0c247de21e08e265169c7d (patch) | |
tree | 84628c46be6f378a4a695c74fc11c75a59ba0fb7 /src | |
parent | fcdcd2f480039b4daeba5bd59eb898f06b69b456 (diff) | |
download | Contacts-c866ad472f3261db3e0c247de21e08e265169c7d.tar.gz |
Update min and target SDK of Contacts to 31
Test: manual
Bug: 198787169
Change-Id: I63279df46ed6c0db96faf7976bfa3c8fbff5f94b
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/contacts/SimImportService.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/contacts/SimImportService.java b/src/com/android/contacts/SimImportService.java index 4c7473107..f6703fc0d 100644 --- a/src/com/android/contacts/SimImportService.java +++ b/src/com/android/contacts/SimImportService.java @@ -15,6 +15,8 @@ */ package com.android.contacts; +import static android.app.PendingIntent.FLAG_IMMUTABLE; + import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; @@ -196,7 +198,7 @@ public class SimImportService extends Service { .setContentTitle(this.getString(R.string.importing_sim_finished_title)) .setColor(this.getResources().getColor(R.color.dialtacts_theme_color)) .setSmallIcon(R.drawable.quantum_ic_done_vd_theme_24) - .setContentIntent(PendingIntent.getActivity(this, 0, intent, 0)); + .setContentIntent(PendingIntent.getActivity(this, 0, intent, FLAG_IMMUTABLE)); return builder.build(); } @@ -210,7 +212,7 @@ public class SimImportService extends Service { .setContentText(this.getString(R.string.importing_sim_failed_message)) .setColor(this.getResources().getColor(R.color.dialtacts_theme_color)) .setSmallIcon(R.drawable.quantum_ic_error_vd_theme_24) - .setContentIntent(PendingIntent.getActivity(this, 0, intent, 0)); + .setContentIntent(PendingIntent.getActivity(this, 0, intent, FLAG_IMMUTABLE)); return builder.build(); } |