Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I591c1a3955f70926d5e814b5c0e088706658d174
Change-Id: I904aadc2fbbb180b57c1b7ff6454dbf0e510b38d
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 32d6644..e5dfca8 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -20,8 +20,8 @@
android:versionName="1.7.33">
<uses-sdk
- android:minSdkVersion="21"
- android:targetSdkVersion="30"/>
+ android:minSdkVersion="31"
+ android:targetSdkVersion="31"/>
<original-package android:name="com.android.contacts"/>
diff --git a/src/com/android/contacts/SimImportService.java b/src/com/android/contacts/SimImportService.java
index 4c74731..f6703fc 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 @@
.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 @@
.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();
}