Skip to content

Battery optimization: remove the launch nag, make it an optional Settings toggle#63

Merged
sfortis merged 1 commit into
devfrom
feature/car-route-unify
Jul 21, 2026
Merged

Battery optimization: remove the launch nag, make it an optional Settings toggle#63
sfortis merged 1 commit into
devfrom
feature/car-route-unify

Conversation

@sfortis

@sfortis sfortis commented Jul 21, 2026

Copy link
Copy Markdown
Owner

The launch-time 'Disable Battery Optimization' dialog re-appeared on every start (no persistence) and its message was misleading. Investigation showed the exemption is not actually needed: playback runs on a doze-exempt foreground service, and Follow Me is motion-gated (a room change is motion, which takes the device out of doze so isDeviceIdleMode is false and scanning runs). Only marginal background-reconnect reliability during long deep-doze benefits.

So: removed checkBatteryOptimization()/the dialog from MainActivity (no more nag), and added an optional, honest toggle under Settings > Diagnostics that shows the current state and launches the system exemption request for power users who still want it. Copy no longer claims 'Android may stop playback'.

🤖 Generated with Claude Code

…eeded for playback or Follow Me); move it to an optional, honest no-nag toggle under Settings > Diagnostics
@sfortis
sfortis merged commit 4690d32 into dev Jul 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant