baldav/src-tauri/src
4aiman 2d0e51bd8d Prompt to enable Bluetooth/location at recording start + two 'don't ask' settings
User forgets to turn BT/GPS on. Modern Android won't let an app toggle them
silently, so prompt and act: BT via the system enable dialog, location via
the location-settings screen.

- ensureSystemReady(needBt, needGps) runs before startRecording: BT off ->
  confirm -> ble_request_enable; location off -> confirm -> open settings.
  Gated by two settings (baldav_dontask_bt / _gps); declining proceeds.
- GPS.isLocationEnabled polls a new Kotlin check (check_location writes
  location_state.json via LocationManager; read_state_file reads it);
  open_location_settings opens ACTION_LOCATION_SOURCE_SETTINGS.
- Settings: 'Не спрашивать про Bluetooth' / '... геолокацию' checkboxes.
2026-10-17 02:07:44 +03:00
..
ble.rs HR strap battery + low-charge voice/beep alerts at 10% and 5% 2026-10-17 00:58:31 +03:00
lib.rs Prompt to enable Bluetooth/location at recording start + two 'don't ask' settings 2026-10-17 02:07:44 +03:00
main.rs Initial commit: BalDav health tracker 2026-05-13 10:21:24 +03:00