Last active
May 21, 2018 17:48
-
-
Save bherbst/1d68a38a2201ea3ea1d508a63a714763 to your computer and use it in GitHub Desktop.
Intercepting Autofill
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
class AutofillEditText : TextInputEditText { | |
@TargetApi(Build.VERSION_CODES.O) | |
override fun autofill(value: AutofillValue) { | |
val autofilledText = value.textValue | |
val processedText = sanitize(autofilledText) | |
super.autofill(AutofillValue.forText(processedText)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment