Skip to content

Commit

Permalink
Merge pull request #3406 from Bnyro/master
Browse files Browse the repository at this point in the history
Fix crash on login
  • Loading branch information
Bnyro authored Mar 26, 2023
2 parents 9ad095f + 6702d34 commit 4470e4f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
32 changes: 16 additions & 16 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,35 @@
"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"
"value": "armeabi-v7a"
}
],
"attributes": [],
"versionCode": 29,
"versionName": "0.12.0",
"outputFile": "app-x86-release.apk"
"versionCode": 32,
"versionName": "0.13.1",
"outputFile": "app-armeabi-v7a-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "armeabi-v7a"
"value": "arm64-v8a"
}
],
"attributes": [],
"versionCode": 29,
"versionName": "0.12.0",
"outputFile": "app-armeabi-v7a-release.apk"
"versionCode": 32,
"versionName": "0.13.1",
"outputFile": "app-arm64-v8a-release.apk"
},
{
"type": "ONE_OF_MANY",
Expand All @@ -50,22 +50,22 @@
}
],
"attributes": [],
"versionCode": 29,
"versionName": "0.12.0",
"versionCode": 32,
"versionName": "0.13.1",
"outputFile": "app-x86_64-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "arm64-v8a"
"value": "x86"
}
],
"attributes": [],
"versionCode": 29,
"versionName": "0.12.0",
"outputFile": "app-arm64-v8a-release.apk"
"versionCode": 32,
"versionName": "0.13.1",
"outputFile": "app-x86-release.apk"
}
],
"elementType": "File"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -97,7 +98,9 @@ class LoginDialog(
PreferenceHelper.setToken(response.token)
PreferenceHelper.setUsername(login.username)

onLogin.invoke()
withContext(Dispatchers.Main) {
onLogin.invoke()
}
dialog?.dismiss()
}
}
Expand Down

0 comments on commit 4470e4f

Please sign in to comment.