Compare commits

..

No commits in common. "96b48aab11dc2a4f43a065f1eff4b435d7a127cf" and "82dc18c1e5fcb37bb57642e86046c6822c953e72" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

@ -12,8 +12,8 @@ android {
minSdkVersion 15
targetSdkVersion 32
versionCode 39
versionName "2.1.2"
versionCode 37
versionName "2.1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
@ -90,9 +90,8 @@ 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.2'
testImplementation 'junit:junit:4.13.1'
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_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
var pi = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT)
val b = NotificationCompat.Builder(this, channelId)
b.setOngoing(true)
.setContentIntent(pi)