App 2.7.0: voice-key double press opens the app; no scroll jumps
Steering wheel: a double press of the voice key (code 287) opens the app. The floating button from 2.6.0 does not show over the MG4 launcher, so this is the way back into the app. The head unit reports keys as the broadcast com.saic.keyevent.hardkey.report, whose extras are not documented: the receiver tries the usual names (and an embedded KeyEvent), and counts one press per report whichever way the up/down field turns out to work; long presses never open the app. The last 20 reports are listed raw on the Logs tab, so if the guess misses, a photo of that list gives the real format. A switch in the Upload tab turns it off. DoublePressDetector (500 ms window) has 5 tests; on the emulator, simulated double presses open the app and single presses, other keys and long presses do not. Scrolling: pages jumped back to the top on every 2 s refresh. A stack trace on the emulator showed why: ViewPager2's RecyclerView lays the pages out while measuring, at a provisional height, and ScrollView.onLayout clamps the position to 0. StableScrollView keeps the driver's position across layouts and is now the root of every page; the scrolled Charging page stays put across refreshes. Vehicle tab: all six value tiles, including both range estimates, sit in one row at the top, so nothing needs scrolling at 1920x720. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki
This commit is contained in:
@@ -107,6 +107,11 @@
|
||||
<string name="conn_err_timeout">Connection timed out</string>
|
||||
<string name="conn_err_http">Server error (HTTP %1$d)</string>
|
||||
|
||||
<string name="label_voice_key">Double-press the voice key to open this app</string>
|
||||
<string name="hint_voice_key">Press the voice key on the steering wheel twice quickly. The voice assistant may still react to the presses.</string>
|
||||
<string name="label_steering_keys">Steering-wheel keys</string>
|
||||
<string name="hint_steering_keys">The last key reports the car sent, newest first. If double-pressing the voice key does not open the app, a photo of this list shows how the car reports it.</string>
|
||||
<string name="steering_keys_empty">No key reports received yet. Press a steering-wheel key.</string>
|
||||
<string name="label_floating_button">Show floating button</string>
|
||||
<string name="hint_floating_button">A small round button over the car\'s screens that opens this app. Drag it to move it; it hides while the app is open.</string>
|
||||
<string name="overlay_permission_missing">This build may not draw over other apps, so the button cannot appear.</string>
|
||||
|
||||
Reference in New Issue
Block a user