diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a3e9b5..cbeca0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,14 @@ Versions after 2.17 are `MAJOR.MINOR.PATCH` (2.17 is followed by 2.17.1 or 2.18. `docs/testing.md`, "Versions and releases"); the headings below keep the numbers as they were released. +## 2.27.1 — 2026-11-19 + +- Check boxes and radio buttons of the brass dialogs show on and off under the remote's focus + too (#290): the system ones, tinted amber, became a solid amber box or circle with no tick or + dot when focused (seen on a SberBox). They are the app's own drawables now — checked: an + amber box with a dark tick, an amber ring with an amber dot; unchecked: an empty dark box or + ring with a dim frame; the amber focus frame stays around the row. + ## 2.27.0 — 2026-11-19 - After an update of the app (a new APK installed over it) the web page comes back by itself, diff --git a/android/app/build.gradle b/android/app/build.gradle index 4420af1..ccc12bb 100755 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -26,8 +26,8 @@ android { applicationId "com.openipc.decoder" minSdk 21 targetSdk 36 - versionCode 63 - versionName "2.27.0" + versionCode 64 + versionName "2.27.1" // Keep only these locales of the libraries' resources, as in the other OpenIPC apps resourceConfigurations += ['en', 'ru', 'zh-rCN'] diff --git a/android/app/src/main/java/com/openipc/decoder/Brass.java b/android/app/src/main/java/com/openipc/decoder/Brass.java index 0b3297a..9da9141 100644 --- a/android/app/src/main/java/com/openipc/decoder/Brass.java +++ b/android/app/src/main/java/com/openipc/decoder/Brass.java @@ -9,7 +9,6 @@ import android.app.AlertDialog; import android.content.Context; -import android.content.res.ColorStateList; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.graphics.drawable.GradientDrawable; @@ -196,7 +195,13 @@ private static void styleTree(Context c, View v) { } else if (v instanceof CompoundButton) { CompoundButton b = (CompoundButton) v; b.setTextColor(color(c, R.color.ink)); - b.setButtonTintList(ColorStateList.valueOf(color(c, R.color.amber))); + // the app's own box and ring, untinted: on and off read under the focus too (#290) + b.setButtonTintList(null); + b.setButtonDrawable(b instanceof android.widget.RadioButton + ? R.drawable.brass_radio : R.drawable.brass_check); + int pad = Math.round(6 * dp(c)); + b.setPadding(Math.max(b.getPaddingLeft(), pad), b.getPaddingTop(), b.getPaddingRight(), + b.getPaddingBottom()); // the remote's focus (focus_ring.xml): views made with the activity's context miss // the dialog theme's checkboxStyle b.setBackgroundResource(R.drawable.focus_ring); diff --git a/android/app/src/main/res/drawable/brass_check.xml b/android/app/src/main/res/drawable/brass_check.xml new file mode 100644 index 0000000..41212ef --- /dev/null +++ b/android/app/src/main/res/drawable/brass_check.xml @@ -0,0 +1,14 @@ + + + + + + diff --git a/android/app/src/main/res/drawable/brass_check_off.xml b/android/app/src/main/res/drawable/brass_check_off.xml new file mode 100644 index 0000000..b831322 --- /dev/null +++ b/android/app/src/main/res/drawable/brass_check_off.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/android/app/src/main/res/drawable/brass_check_on.xml b/android/app/src/main/res/drawable/brass_check_on.xml new file mode 100644 index 0000000..4482748 --- /dev/null +++ b/android/app/src/main/res/drawable/brass_check_on.xml @@ -0,0 +1,14 @@ + + + + + + diff --git a/android/app/src/main/res/drawable/brass_radio.xml b/android/app/src/main/res/drawable/brass_radio.xml new file mode 100644 index 0000000..d7e0085 --- /dev/null +++ b/android/app/src/main/res/drawable/brass_radio.xml @@ -0,0 +1,14 @@ + + + + + + diff --git a/android/app/src/main/res/drawable/brass_radio_off.xml b/android/app/src/main/res/drawable/brass_radio_off.xml new file mode 100644 index 0000000..927e008 --- /dev/null +++ b/android/app/src/main/res/drawable/brass_radio_off.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/android/app/src/main/res/drawable/brass_radio_on.xml b/android/app/src/main/res/drawable/brass_radio_on.xml new file mode 100644 index 0000000..93bd25d --- /dev/null +++ b/android/app/src/main/res/drawable/brass_radio_on.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index 1b47cd6..ae1466b 100755 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -18,10 +18,16 @@ @style/BrassCheck @style/BrassRadio + diff --git a/tests/e2e.sh b/tests/e2e.sh index 4653638..3623427 100755 --- a/tests/e2e.sh +++ b/tests/e2e.sh @@ -353,6 +353,10 @@ if [ -n "$SHOTS" ]; then $ADB shell input keyevent 23 sleep 3 $ADB exec-out screencap -p > "$OUT/shots/tunnel_network.png" + # the remote's focus on a check box (Allow remote access, on): on or off must read (#290) + $ADB shell input keyevent 20 + sleep 1 + $ADB exec-out screencap -p > "$OUT/shots/tunnel_network_check.png" # down to the On switch: the dialog scrolls to the cipher, TCP, multicast and On for _ in 1 2 3 4 5 6 7; do $ADB shell input keyevent 20; sleep 0.4; done sleep 1