Created
March 11, 2019 22:00
-
-
Save dkhmelenko/5668173495c7653022754249d7bddd54 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.deleteStoredCredentials(context, credential) | |
.subscribe({ | |
Toast.makeText(this, "Deleted credential successfully", Toast.LENGTH_SHORT).show() | |
}, { | |
Toast.makeText(this, "Failed deleting credential: $it", Toast.LENGTH_SHORT).show() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment