Created
February 4, 2019 14:35
-
-
Save dkhmelenko/7108c35216f3d774066ae26bdfa33166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun handleSaveCredentialsResult(resultCode: Int, emitter: CompletableEmitter) { | |
if (resultCode == Activity.RESULT_OK) { | |
emitter.onComplete() | |
} else { | |
emitter.onError(Exception("Saving credentials failed: $resultCode")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment