Skip to content

Commit

Permalink
fix: config save bug
Browse files Browse the repository at this point in the history
Fixes a bug where config changes were saving on the wrong thread, causing a failure to save changes.

Fixes a bug where the quick tile could cause a crash by initializing the tile state before it was ready.
  • Loading branch information
zaneschepke committed Oct 23, 2023
1 parent 79583e0 commit 513d089
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId = "com.zaneschepke.wireguardautotunnel"
minSdk = 26
targetSdk = 34
versionCode = 31600
versionName = "3.1.6"
versionCode = 31700
versionName = "3.1.7"

multiDexEnabled = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ class TunnelControlTile : TileService() {
super.onStartListening()
}

override fun onTileAdded() {
super.onTileAdded()
qsTile.contentDescription = this.resources.getString(R.string.toggle_vpn)
scope.launch {
updateTileState()
}
}

override fun onTileRemoved() {
super.onTileRemoved()
cancelJob()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fun ConfigScreen(
) {

val context = LocalContext.current
val scope = rememberCoroutineScope { Dispatchers.IO }
val scope = rememberCoroutineScope()
val clipboardManager: ClipboardManager = LocalClipboardManager.current
val keyboardController = LocalSoftwareKeyboardController.current

Expand Down

0 comments on commit 513d089

Please sign in to comment.