WIP: [android] Implement Light, Dark, and System modes on android(Auto) #8309

Draft
SRSAS wants to merge 3 commits from SRSAS/systemUIMode into master

3 commits

Author SHA1 Message Date
Sebastião Andrade e Sousa
a1827180aa [strings] Regenerated
Signed-off-by: Sebastiao Sousa <sebastiao.sousa@tecnico.ulisboa.pt>
Co-authored-by: Francisco Nael Salgado <francisco.nael.salgado@tecnico.ulisboa.pt>
2024-07-09 18:04:55 +01:00
Sebastiao Sousa
cb5ea45b3f [strings] Modified android strings
Added system, light, and dark to strings.txt.
Modified pref_map_style_title from Night Mode to Appearance

Signed-off-by: Sebastiao Sousa <sebastiao.sousa@tecnico.ulisboa.pt>
Co-authored-by: Francisco Nael Salgado <francisco.nael.salgado@tecnico.ulisboa.pt>
2024-07-08 23:17:26 +01:00
Sebastiao Sousa
20a5f1e510 [android] Implement Light, Dark, and System modes on android(Auto)
closes #749

Changed from the existing night modes (on, off, auto), to "appearence"
modes:
	- Light;
	- Dark;
	- System;

System mode follows whatever mode the user's device is in. This
implementation works for both normal android and AndroidAuto.

Main changes:
	- added necessary strings to XML files;
	- changed the position and option names of the "map style
	  preferences";
	- implemented system mode, and some helper methods on
	  ThemeSwitcher.java and ThemeUtils.java;
	- added uiMode changes detection to all activities;
	- removed "auto" mode implementation;

Signed-off-by: Sebastiao Sousa <sebastiao.sousa@tecnico.ulisboa.pt>
Co-authored-by: Francisco Nael Salgado <francisco.nael.salgado@tecnico.ulisboa.pt>
2024-07-08 23:16:25 +01:00