Created
July 23, 2019 10:02
-
-
Save Nublo/ddda31deadad6ae5149c7fbe7631e4ca 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
override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) { | |
if (edited) { | |
edited = false | |
return | |
} | |
var working = getEditText() | |
working = manageDateDivider(working, 2, start, before) | |
working = manageDateDivider(working, 5, start, before) | |
edited = true | |
input.setText(working) | |
input.setSelection(input.text.length) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment