Skip to content

Commit

Permalink
Make TextView type changeable in real time (Fix)!
Browse files Browse the repository at this point in the history
  • Loading branch information
slaviboy committed Apr 14, 2020
1 parent 6a0e44e commit b5ed184
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class Updater(
textView.filters = arrayOf<InputFilter>(LengthFilter(7))
} else if (type == TYPE_RGB || type == TYPE_RGBA || type == TYPE_HSV || type == TYPE_HSL || type == TYPE_CMYK) {
// multiple values expected
textView.filters = arrayOf<InputFilter>()
} else {
// for single integer values limit to 3 digits
textView.filters = arrayOf<InputFilter>(LengthFilter(3))
Expand Down

0 comments on commit b5ed184

Please sign in to comment.