diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index cbf3376d0..0639a001a 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -11,23 +11,10 @@ "type": "UNIVERSAL", "filters": [], "attributes": [], - "versionCode": 29, - "versionName": "0.12.0", + "versionCode": 32, + "versionName": "0.13.1", "outputFile": "app-universal-release.apk" }, - { - "type": "ONE_OF_MANY", - "filters": [ - { - "filterType": "ABI", - "value": "x86" - } - ], - "attributes": [], - "versionCode": 29, - "versionName": "0.12.0", - "outputFile": "app-x86-release.apk" - }, { "type": "ONE_OF_MANY", "filters": [ @@ -37,23 +24,10 @@ } ], "attributes": [], - "versionCode": 29, - "versionName": "0.12.0", + "versionCode": 32, + "versionName": "0.13.1", "outputFile": "app-armeabi-v7a-release.apk" }, - { - "type": "ONE_OF_MANY", - "filters": [ - { - "filterType": "ABI", - "value": "x86_64" - } - ], - "attributes": [], - "versionCode": 29, - "versionName": "0.12.0", - "outputFile": "app-x86_64-release.apk" - }, { "type": "ONE_OF_MANY", "filters": [ @@ -63,9 +37,35 @@ } ], "attributes": [], - "versionCode": 29, - "versionName": "0.12.0", + "versionCode": 32, + "versionName": "0.13.1", "outputFile": "app-arm64-v8a-release.apk" + }, + { + "type": "ONE_OF_MANY", + "filters": [ + { + "filterType": "ABI", + "value": "x86_64" + } + ], + "attributes": [], + "versionCode": 32, + "versionName": "0.13.1", + "outputFile": "app-x86_64-release.apk" + }, + { + "type": "ONE_OF_MANY", + "filters": [ + { + "filterType": "ABI", + "value": "x86" + } + ], + "attributes": [], + "versionCode": 32, + "versionName": "0.13.1", + "outputFile": "app-x86-release.apk" } ], "elementType": "File" diff --git a/app/src/main/java/com/github/libretube/ui/dialogs/LoginDialog.kt b/app/src/main/java/com/github/libretube/ui/dialogs/LoginDialog.kt index 422cef983..d5706c933 100644 --- a/app/src/main/java/com/github/libretube/ui/dialogs/LoginDialog.kt +++ b/app/src/main/java/com/github/libretube/ui/dialogs/LoginDialog.kt @@ -19,6 +19,7 @@ import com.github.libretube.helpers.PreferenceHelper import com.google.android.material.dialog.MaterialAlertDialogBuilder import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext import kotlinx.serialization.decodeFromString import retrofit2.HttpException @@ -97,7 +98,9 @@ class LoginDialog( PreferenceHelper.setToken(response.token) PreferenceHelper.setUsername(login.username) - onLogin.invoke() + withContext(Dispatchers.Main) { + onLogin.invoke() + } dialog?.dismiss() } }