File tree Expand file tree Collapse file tree 11 files changed +14
-13
lines changed
java/com/mrgames13/jimdo/colorconverter/ui/activity Expand file tree Collapse file tree 11 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ android {
13
13
applicationId " com.mrgames13.jimdo.colorconverter"
14
14
minSdkVersion 19
15
15
targetSdkVersion 29
16
- versionCode 202
17
- versionName " 2.0.2 "
16
+ versionCode 203
17
+ versionName " 2.0.3 "
18
18
vectorDrawables. useSupportLibrary = true
19
19
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
20
20
}
Original file line number Diff line number Diff line change @@ -321,10 +321,12 @@ class MainActivity : AppCompatActivity() {
321
321
// Prepare views
322
322
hexValue.addTextChangedListener(object : SimpleTextWatcher () {
323
323
override fun afterTextChanged (s : Editable ? ) {
324
- if (! s.toString().startsWith(" #" )) {
324
+ val value = s.toString()
325
+ if (! value.startsWith(" #" )) {
325
326
hexValue.setText(" #" )
326
327
Selection .setSelection(hexValue.text, hexValue.text.length)
327
328
} else {
329
+ if (value.length > 1 && ! value.matches(" #[a-fA-F0-9]+" .toRegex())) s?.delete(value.length - 1 , value.length)
328
330
dialog.getButton(AlertDialog .BUTTON_POSITIVE ).isEnabled = s.toString().length == 7 || s.toString().length == 4
329
331
}
330
332
}
Original file line number Diff line number Diff line change 17
17
android : inputType =" textCapCharacters"
18
18
android : hint =" @string/hex_code"
19
19
android : maxLength =" 7"
20
- android : importantForAutofill =" no"
21
- android : digits =" 0123456789ABCDEF" />
20
+ android : importantForAutofill =" no" />
22
21
</FrameLayout >
Original file line number Diff line number Diff line change 5
5
Release: Working copy
6
6
Locale: de, German
7
7
Exported by: M&R Games
8
- Exported at: Mon, 23 Dec 2019 16:41:59 +0000
8
+ Exported at: Fri, 27 Dec 2019 20:40:20 +0000
9
9
-->
10
10
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
11
11
<string name =" close" >schließen</string >
Original file line number Diff line number Diff line change 5
5
Release: Working copy
6
6
Locale: de, German
7
7
Exported by: M&R Games
8
- Exported at: Mon, 23 Dec 2019 13:31:29 +0100
8
+ Exported at: Fri, 27 Dec 2019 20:40:20 +0000
9
9
-->
10
10
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
11
11
<string name =" color_alice_blue" >Aliceblau</string >
Original file line number Diff line number Diff line change 5
5
Release: Working copy
6
6
Locale: es, Spanish
7
7
Exported by: M&R Games
8
- Exported at: Mon, 23 Dec 2019 16:42:00 +0000
8
+ Exported at: Fri, 27 Dec 2019 20:40:20 +0000
9
9
-->
10
10
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
11
11
<string name =" close" >cerrar</string >
Original file line number Diff line number Diff line change 5
5
Release: Working copy
6
6
Locale: es, Spanish
7
7
Exported by: M&R Games
8
- Exported at: Mon, 23 Dec 2019 13:31:29 +0100
8
+ Exported at: Fri, 27 Dec 2019 20:40:20 +0000
9
9
-->
10
10
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
11
11
<string name =" color_alice_blue" >Azul Alicia</string >
Original file line number Diff line number Diff line change 5
5
Release: Working copy
6
6
Locale: fr, French
7
7
Exported by: M&R Games
8
- Exported at: Mon, 23 Dec 2019 16:41:59 +0000
8
+ Exported at: Fri, 27 Dec 2019 20:40:19 +0000
9
9
-->
10
10
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
11
11
<string name =" close" >fermer</string >
Original file line number Diff line number Diff line change 5
5
Release: Working copy
6
6
Locale: fr, French
7
7
Exported by: M&R Games
8
- Exported at: Mon, 23 Dec 2019 13:31:28 +0100
8
+ Exported at: Fri, 27 Dec 2019 20:40:20 +0000
9
9
-->
10
10
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
11
11
<string name =" color_alice_blue" >Bleu alice</string >
Original file line number Diff line number Diff line change 5
5
Release: Working copy
6
6
Locale: en, English
7
7
Exported by: M&R Games
8
- Exported at: Mon, 23 Dec 2019 16:41:59 +0000
8
+ Exported at: Fri, 27 Dec 2019 20:40:19 +0000
9
9
-->
10
10
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
11
11
<string name =" close" >close</string >
Original file line number Diff line number Diff line change 5
5
Release: Working copy
6
6
Locale: en, English
7
7
Exported by: M&R Games
8
- Exported at: Mon, 23 Dec 2019 13:31:28 +0100
8
+ Exported at: Fri, 27 Dec 2019 20:40:19 +0000
9
9
-->
10
10
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
11
11
<string name =" color_alice_blue" >Alice Blue</string >
You can’t perform that action at this time.
0 commit comments