Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit 0043a0c

Browse files
committed
1. FLAG_IMMUTABLE flag error fix
1 parent 489fcfa commit 0043a0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ dependencies {
9090
implementation 'com.vincentbrison.openlibraries.android:dualcache:3.1.1'
9191
implementation 'com.vincentbrison.openlibraries.android:dualcache-jsonserializer:3.1.1'
9292
implementation 'com.android.support:multidex:1.0.3'
93-
implementation 'androidx.work:work-runtime:2.8.0-alpha02'
93+
implementation 'androidx.work:work-runtime-ktx:2.7.1'
9494

9595
testImplementation 'junit:junit:4.13.2'
9696
androidTestImplementation 'androidx.test:runner:1.4.0'

app/src/main/java/org/yggdrasil/app/crispa/YggdrasilTunService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class YggdrasilTunService : VpnService() {
283283
intent.putExtra(IS_VPN_SERVICE_STOPPED, isClosed);
284284
var stackBuilder = TaskStackBuilder.create(this)
285285
stackBuilder.addNextIntentWithParentStack(intent)
286-
var pi = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT)
286+
var pi = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
287287
val b = NotificationCompat.Builder(this, channelId)
288288
b.setOngoing(true)
289289
.setContentIntent(pi)

0 commit comments

Comments
 (0)