wolfskin/app/src/main/res
JustinZeus fa914845f4
Add option to hide the voice search button (#1423)
## Description

Adds a "Show voice search button" toggle to the search page's view
options dialog, alongside the existing "Combined search results" toggle.
When disabled, the voice search button is hidden from the search row,
taking it out of the D-pad focus path.

The new field `show_voice_search_button` is added to `SearchPreferences`
(default `true`). The serializer applies the default for new installs,
and a new entry in `AppUpgradeHandler` sets it to `true` for users
upgrading from earlier versions so existing behaviour is preserved.

### Related issues

Discussion: https://github.com/damontecres/Wholphin/discussions/1419

### Testing

Tested on an Android TV (1080p) AVD running API 34:

- Toggle on (default): voice search button visible at the top of the
search row.
- Toggle off: button disappears; only the search text field remains.
- Toggle back on: button reappears.
- Upgrade handler verified by spoofing `version.current.name` to an
older value in SharedPreferences and force-restarting the app; after
`needUpgrade()` fired, the toggle was on as expected.

The upgrade-handler entry currently uses `0.6.4-8-g0` (based on current
`main` HEAD); happy to bump this if you'd prefer a different target
version on merge.

## Screenshots

<img width="1920" height="1080" alt="pr1-01-home"
src="https://github.com/user-attachments/assets/0d5cdad0-5547-44f3-b4a5-5d15f71dddc0"
/>
<img width="1920" height="1080" alt="pr1-02-toggled-off"
src="https://github.com/user-attachments/assets/1e574229-0838-487d-b943-83d394a8193d"
/>

## AI or LLM usage

I used Claude to scaffold the proto/serializer/upgrade-handler/dialog
changes, mirroring the existing `combined_search_results` pattern. I
reviewed each diff before committing and tested the toggle manually on
the emulator, including the upgrade-handler simulation.

---------

Co-authored-by: Damontecres <damontecres@gmail.com>
2026-05-21 15:31:17 -04:00
..
drawable Updates series details, adds movie genres, & adds critic rating (#358) 2025-12-01 18:04:40 -05:00
font Add playback controls 2025-09-22 20:09:12 -04:00
mipmap-anydpi-v26 Add icons 2025-10-12 17:41:54 -04:00
mipmap-hdpi Add ability to style subtitles (#177) 2025-11-08 19:54:51 -05:00
mipmap-mdpi Add icons 2025-10-12 17:41:54 -04:00
mipmap-xhdpi Add icons 2025-10-12 17:41:54 -04:00
mipmap-xxhdpi Add icons 2025-10-12 17:41:54 -04:00
mipmap-xxxhdpi Add icons 2025-10-12 17:41:54 -04:00
values Add option to hide the voice search button (#1423) 2026-05-21 15:31:17 -04:00
values-ar Translated using Weblate (Arabic) 2026-05-11 14:27:11 +00:00
values-ca Add batch of translations (#425) 2025-12-11 13:03:27 -05:00
values-cs Improve display of "DTS:HD" and "DTS:HD MA" audio tracks (#1064) 2026-03-10 23:44:44 -04:00
values-da Improve display of "DTS:HD" and "DTS:HD MA" audio tracks (#1064) 2026-03-10 23:44:44 -04:00
values-de Translated using Weblate (German) 2026-05-11 14:27:11 +00:00
values-el Translated using Weblate (Greek) 2026-02-10 19:59:41 +00:00
values-es Translated using Weblate (Spanish) 2026-05-11 14:27:11 +00:00
values-et Translated using Weblate (Estonian) 2026-05-11 14:27:11 +00:00
values-fi Fix linting 2026-02-20 10:50:07 -05:00
values-fr Translated using Weblate (French) 2026-04-26 21:53:02 +00:00
values-hu Translated using Weblate (Hungarian) 2026-04-26 21:53:00 +00:00
values-in Translated using Weblate (Indonesian) 2026-05-11 14:27:12 +00:00
values-it Translated using Weblate (Italian) 2026-05-11 14:27:11 +00:00
values-iw Translated using Weblate (Hebrew) 2026-05-11 14:27:12 +00:00
values-kab Translated using Weblate (Kabyle) 2025-12-29 20:39:11 +00:00
values-lv Translated using Weblate (Latvian) 2026-04-26 21:53:00 +00:00
values-nb-rNO Translated using Weblate (Norwegian Bokmål) 2026-02-10 19:59:41 +00:00
values-nl Translated using Weblate (Dutch) 2026-05-11 14:27:11 +00:00
values-nn Translated using Weblate (Norwegian Nynorsk) 2026-04-26 21:53:01 +00:00
values-pl Translated using Weblate (Polish) 2026-05-11 14:27:11 +00:00
values-pt Translated using Weblate (Portuguese) 2026-05-11 14:27:11 +00:00
values-pt-rBR Translated using Weblate (Portuguese (Brazil)) 2026-05-11 14:27:11 +00:00
values-ro Translated using Weblate (Romanian) 2026-04-10 18:56:48 +00:00
values-ru Translated using Weblate (Russian) 2026-04-26 21:53:00 +00:00
values-sk Translated using Weblate (Slovak) 2026-05-11 14:27:11 +00:00
values-sl Translated using Weblate (Slovenian) 2026-05-11 14:27:11 +00:00
values-sv Translated using Weblate (Swedish) 2026-03-30 18:11:35 +00:00
values-th Translated using Weblate (Thai) 2026-04-26 21:53:01 +00:00
values-tr Translated using Weblate (Turkish) 2026-05-11 14:27:12 +00:00
values-uk Improve display of "DTS:HD" and "DTS:HD MA" audio tracks (#1064) 2026-03-10 23:44:44 -04:00
values-zh-rCN Translated using Weblate (Chinese (Simplified Han script)) 2026-05-11 14:27:11 +00:00
values-zh-rTW Translated using Weblate (Chinese (Traditional Han script)) 2026-05-11 14:27:11 +00:00
xml Allow trusting user provided SSL/TLS certificates (#608) 2025-12-31 14:13:07 -05:00