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

Commit a0f32d7f authored by Nishant Dande's avatar Nishant Dande
Browse files

Add specific exception to handle cached user

parent d28f6f44
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ class AppInstallerUseCase@Inject constructor(
    fun currentAuthData(): AuthData? {
        return try {
            cacheRepository.cacheAuthData()
        } catch (e: Exception) {
        } catch (e: RuntimeException) {
            if (cacheRepository.currentUser() == User.NO_GOOGLE) {
                return AuthData("", "").apply {
                    this.isAnonymous = false