Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69dc73cb authored by Aayush Gupta's avatar Aayush Gupta
Browse files

App Lounge: Handle authentication failure on google

parent 7b0fb3ac
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -75,7 +75,13 @@ class MainActivity : AppCompatActivity() {
                        viewModel.destroyCredentials()
                        navController.navigate(R.id.signInFragment, null, navOptions)
                    }
                    USER.GOOGLE -> {}
                    USER.GOOGLE -> {
                        if (viewModel.authDataJson.value.isNullOrEmpty() && !viewModel.authRequestRunning) {
                            Log.d(TAG, "Fetching new authentication data")
                            viewModel.destroyCredentials()
                            navController.navigate(R.id.signInFragment, null, navOptions)
                        }
                    }
                }
            }
        }