Created
March 11, 2019 21:45
-
-
Save dkhmelenko/08ca27253e11a2406a896565876c5526 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
val credential = Credential.Builder(login) | |
.setName(login) | |
.setPassword(password) | |
.build() | |
RxGoogleSmartLockManager.storeCredentials(context, credential) | |
.subscribe({ | |
Toast.makeText(this, "Credential stored successfully", Toast.LENGTH_SHORT).show() | |
}, { | |
Toast.makeText(this, "Failed storing credential: $it", Toast.LENGTH_SHORT).show() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment