diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-27 11:47:35 +0100 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-27 11:47:35 +0100 |
| commit | 101e8fbf1b277da74a3510435e28fd4bcaa6edae (patch) | |
| tree | 460c1a062d53badf8301d9429507db5470dc28f5 /packages/meshbay-hub/tests/test_android_shell.py | |
| parent | 89358ec1e8323d2ce11b4e10e84d0389e806b8dc (diff) | |
| download | meshbay-101e8fbf1b277da74a3510435e28fd4bcaa6edae.tar.gz | |
fix(android): keep the screen on while a video plays
The WebView has no Screen Wake Lock API, so the player's request did
nothing. The bridge now supplies navigator.wakeLock over a native
screen:keep-on channel (the WebView's keepScreenOn).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_android_shell.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_android_shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/test_android_shell.py b/packages/meshbay-hub/tests/test_android_shell.py index eedc1988..95b9d796 100644 --- a/packages/meshbay-hub/tests/test_android_shell.py +++ b/packages/meshbay-hub/tests/test_android_shell.py @@ -153,10 +153,10 @@ def test_the_shim_offers_desktop_channels_and_native_answers_each(): # A phone has a push distributor to talk to and a camera roll and an # address book to back up, and a desktop has none of them; those families are the ones the desktop lacks # rather than the ones it shares. Nor does a desktop ask before reaching the - # local network (Android 17). + # local network (Android 17), nor stand in for a Wake Lock API it has. phone_only = {c for c in shim if c.startswith(("push:", "photosync:", "phonesync:", "contactsync:", "calendarsync:", "drivesync:", - "wasync:", "lan:"))} + "wasync:", "lan:", "screen:"))} assert any(c.startswith("push:") for c in phone_only), "the push channels are gone" assert any(c.startswith("photosync:") for c in phone_only), "the backup channels are gone" assert shim - phone_only <= preload, f"channels the desktop does not have: {shim - preload}" |