File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
android/features/login/src/main/java/io/newm/feature/login/screen/welcome Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import androidx.compose.runtime.setValue
1616import androidx.compose.ui.platform.LocalContext
1717import com.google.android.gms.auth.api.signin.GoogleSignIn
1818import com.google.android.gms.auth.api.signin.GoogleSignInAccount
19+ import com.google.android.gms.auth.api.signin.GoogleSignInStatusCodes
1920import com.google.android.gms.common.api.ApiException
2021import com.google.android.gms.tasks.Task
2122import com.google.android.recaptcha.RecaptchaAction
@@ -107,11 +108,15 @@ class WelcomeScreenPresenter(
107108 } catch (e: ApiException ) {
108109 // The ApiException status code indicates the detailed failure reason.
109110 // Please refer to the GoogleSignInStatusCodes class reference for more information.
110- logger.error(
111- " WelcomeScreenPresenter" ,
112- " Google sign in failed: ${task.result} " ,
113- e
114- )
111+ if (e.statusCode != GoogleSignInStatusCodes .SIGN_IN_CANCELLED
112+ && e.statusCode != GoogleSignInStatusCodes .SIGN_IN_CURRENTLY_IN_PROGRESS
113+ ) {
114+ logger.error(
115+ " WelcomeScreenPresenter" ,
116+ " Google sign in failed" ,
117+ e
118+ )
119+ }
115120 } catch (kmmException: KMMException ) {
116121 logger.error(
117122 " WelcomeScreenPresenter" ,
You can’t perform that action at this time.
0 commit comments