From 0043a0cda84f3f17b88faf825628c2141d35200d Mon Sep 17 00:00:00 2001 From: vadym Date: Mon, 16 May 2022 14:42:18 +0300 Subject: [PATCH] 1. FLAG_IMMUTABLE flag error fix --- app/build.gradle | 2 +- .../main/java/org/yggdrasil/app/crispa/YggdrasilTunService.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f58e98e..7101e3d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -90,7 +90,7 @@ dependencies { implementation 'com.vincentbrison.openlibraries.android:dualcache:3.1.1' implementation 'com.vincentbrison.openlibraries.android:dualcache-jsonserializer:3.1.1' implementation 'com.android.support:multidex:1.0.3' - implementation 'androidx.work:work-runtime:2.8.0-alpha02' + implementation 'androidx.work:work-runtime-ktx:2.7.1' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test:runner:1.4.0' diff --git a/app/src/main/java/org/yggdrasil/app/crispa/YggdrasilTunService.kt b/app/src/main/java/org/yggdrasil/app/crispa/YggdrasilTunService.kt index 290deb2..df6bea5 100644 --- a/app/src/main/java/org/yggdrasil/app/crispa/YggdrasilTunService.kt +++ b/app/src/main/java/org/yggdrasil/app/crispa/YggdrasilTunService.kt @@ -283,7 +283,7 @@ class YggdrasilTunService : VpnService() { intent.putExtra(IS_VPN_SERVICE_STOPPED, isClosed); var stackBuilder = TaskStackBuilder.create(this) stackBuilder.addNextIntentWithParentStack(intent) - var pi = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT) + var pi = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT) val b = NotificationCompat.Builder(this, channelId) b.setOngoing(true) .setContentIntent(pi)