Compare commits

...

3 Commits

Author SHA1 Message Date
vadym
96b48aab11 1. bump version 2022-05-16 14:42:52 +03:00
vadym
0043a0cda8 1. FLAG_IMMUTABLE flag error fix 2022-05-16 14:42:18 +03:00
vadym
489fcfaa1b 1. requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE error fix 2022-05-16 14:24:29 +03:00
2 changed files with 5 additions and 4 deletions

View File

@ -12,8 +12,8 @@ android {
minSdkVersion 15
targetSdkVersion 32
versionCode 37
versionName "2.1.0"
versionCode 39
versionName "2.1.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
@ -90,8 +90,9 @@ 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-ktx:2.7.1'
testImplementation 'junit:junit:4.13.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

View File

@ -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)