Repository navigation
AnimeTVOne v1.3.4
AnimeTVOne v1.3.4 — Player remote/D-pad focus fix
Follow-up to v1.3.3 after on-device testing on a Fire TV Stick (Android 7.1).
The big one: remote navigation in the player was broken
The centred play/pause button has no vertically-overlapping neighbour, so
Compose's default directional focus search could never find anything above it.
In practice focus was stuck on play/pause: pressing UP/RIGHT did nothing and
the top bar (選集 / 速度 / 追番 / 比例 / 返回) was unreachable with a remote.
- The entire player focus graph is now wired explicitly with
FocusRequesters:- Up from play/pause → 選集; Down from any top-bar button → play/pause.
- Left/Right walks the centre row: −10s ↔ play/pause ↔ +10s ↔ 下一集.
- Up from −10s → 返回; the top bar walks left/right in order.
- A container fallback sends any D-pad press to play/pause if the full-screen
node itself ever holds focus.
Other fixes
- Controls no longer vanish while you navigate them. The 4-second auto-hide
now restarts on any remote input (previously only on button clicks), so a
slow D-pad trip to a button doesn't hide the bar first. - Resume position follows the episode actually playing when switching
episodes from the in-player 選集 picker (was using the route's episode id).
Verified
- New instrumented test
PlayerControlsFocusTestdrives the D-pad and asserts
the whole focus graph (incl. the container fallback). Both tests pass on an
Android 14 device;assembleRelease(R8) builds and runs; 32/32 unit tests
andlintpass.
Install: self-signed (debug key) APK for sideloading; installs over earlier builds.