Handle account UI login UI progress better

* Show server down error message on 503 status
* Don't allow users to click another login option if another login is in progress
* Reset progress bar's visibility properly

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-05-27 18:51:43 +05:30
parent 5ca8c74773
commit cd3cd6f9b7
7 changed files with 110 additions and 12 deletions

View File

@@ -127,6 +127,14 @@ fun Context.restartApp() {
exitProcess(0)
}
fun Context.getEmptyActivityAnimation(): ActivityOptionsCompat {
return ActivityOptionsCompat.makeCustomAnimation(
this,
android.R.anim.fade_in,
android.R.anim.fade_out
)
}
fun Context.getEmptyActivityBundle(): Bundle? {
return ActivityOptionsCompat.makeCustomAnimation(
this,