Commit a73d3b4
authored
Refactor(text): Use KTX extension for isDigitsOnly check (#593)
The lint tool reported a "UseKtx" warning in StateBasedText.kt.
The code was using the static `TextUtils.isDigitsOnly()` method.
This commit refactors the code to use the more idiomatic
`isDigitsOnly()` Kotlin extension function from the Android KTX library.1 parent 3c8b283 commit a73d3b4
File tree
1 file changed
+1
-3
lines changed- compose/snippets/src/main/java/com/example/compose/snippets/text
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| |||
249 | 247 | | |
250 | 248 | | |
251 | 249 | | |
252 | | - | |
| 250 | + | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
| |||
0 commit comments