Commit b2cc4390 authored by aniket's avatar aniket

fixes failing test

parent 6f8195b8
...@@ -228,10 +228,10 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks ...@@ -228,10 +228,10 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
null null
) )
} catch (e: IntentSender.SendIntentException) { } catch (e: IntentSender.SendIntentException) {
Timber.e("STATUS", "ERROR: Could not start hint picker Intent", e); Timber.e("ERROR: Could not start hint picker Intent")
} }
} else { } else {
Timber.d("STATUS", "ERROR: nothing happening") Timber.d("ERROR: nothing happening")
} }
} }
} }
...@@ -249,7 +249,7 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks ...@@ -249,7 +249,7 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
try { try {
status.startResolutionForResult(activity, requestCode) status.startResolutionForResult(activity, requestCode)
} catch (e: IntentSender.SendIntentException) { } catch (e: IntentSender.SendIntentException) {
Timber.e("STATUS", "Failed to send Credentials intent.", e) Timber.e("Failed to send Credentials intent")
} }
} }
...@@ -262,12 +262,12 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks ...@@ -262,12 +262,12 @@ class LoginFragment : Fragment(), LoginView, GoogleApiClient.ConnectionCallbacks
Auth.CredentialsApi.save(googleApiClient, credentialsToBeSaved).setResultCallback( Auth.CredentialsApi.save(googleApiClient, credentialsToBeSaved).setResultCallback(
object : ResolvingResultCallbacks<Status>(activity!!, SAVE_CREDENTIALS) { object : ResolvingResultCallbacks<Status>(activity!!, SAVE_CREDENTIALS) {
override fun onSuccess(status: Status) { override fun onSuccess(status: Status) {
Timber.d("STATUS", "save:SUCCESS:$status") Timber.d("credentials save:SUCCESS:$status")
credentialsToBeSaved = null credentialsToBeSaved = null
} }
override fun onUnresolvableFailure(status: Status) { override fun onUnresolvableFailure(status: Status) {
Timber.w("STATUS", "save:FAILURE:$status") Timber.e("credentials save:FAILURE:$status")
credentialsToBeSaved = null credentialsToBeSaved = null
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment