Skip to content

Commit 483da28

Browse files
Kunal PasrichaKunal Pasricha
authored andcommitted
update flags
1 parent e5404f2 commit 483da28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

smartnotifications/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
defaultConfig {
1111
minSdkVersion 21
1212
targetSdkVersion 30
13-
versionCode 1
14-
versionName "1.0"
13+
versionCode 2
14+
versionName "1.1"
1515

1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1717
consumerProguardFiles "consumer-rules.pro"

smartnotifications/src/main/java/com/kunalapk/smartnotifications/services/MessagingService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ open class MessagingService : FirebaseMessagingService() {
198198

199199

200200
private fun makeNotification(intent:Intent,code:Int,title:String,message:String,icon:Bitmap?,isProfileIcon:Boolean,appNotificationIcon:Int){
201-
val pendingIntent:PendingIntent = PendingIntent.getActivity(this,code,intent,PendingIntent.FLAG_UPDATE_CURRENT)
201+
val pendingIntent:PendingIntent = PendingIntent.getActivity(this,code,intent,PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
202202
mNotificationHelper = NotificationHelper(this)
203203

204204
if(contentView!=null){

0 commit comments

Comments
 (0)