organicmaps/data
Roman Tsisyk 813c1f54a0 [android] Disable the screen wake lock by default
Organic Maps drains the battery like crazy with default settings.

**Steps to reproduce:**

1. Install and run the app.
2. Lock your device and put it on a flat surface, with the screen facing up.
3. Pick up the device OR just tap on the screen.
4. The screen will automatically turn on, this is an Android feature.
5. Organic Maps will never allow the screen to go off after that.

Now, imaging this case happens while the phone is in a pocket. The battery may
The battery will completely drain before the user even notice that screen is on.
I see Organic Maps draining battery and burning screens on my devices regulary.

The problem is caused by two options which are enabled by default -
"Show on the lock screen" and "Allow the screen to sleep". The first option
adds the app to the lock screen (which is weird on its own). The second
option doesn't allow the phone's screen to go off.

This patch does the following:

- Inverts "Allow the screen to sleep" option to "Keep the screen on".
- Sets the default value of the option to OFF (=allow screen to sleep).
- Applies the option only in FOLLOW & FOLLOW_ROTATE location modes.
- Forces the screen to keep on during navigation no matter of the option.

To summarize, with enabled "Keep the screen on" the screen will be kept
on in the following cases:

- During navigation.
- FOLLOW and FOLLOW_ROTATE location modes.

Without the option, the screen will be kept on only during navigation.

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-05 10:44:35 +02:00
..
benchmarks
borders
conf/isolines [isolines] Updated countries-to-generate profile. 2023-10-23 08:54:28 -03:00
countries-strings [strings] Regenerated 2023-10-04 13:23:34 +02:00
gpx_test_data Fix GPX tracks imported with invisible color because of a bug 2023-08-26 20:31:37 +02:00
kml_test_data [kml] Moved kml test files into data/kml_test_data folder. 2022-12-17 08:38:37 +01:00
resources-6plus_clear [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-6plus_dark [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-default Add texturing for the user arrow 2023-06-28 17:22:22 -03:00
resources-hdpi_clear [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-hdpi_dark [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-mdpi_clear [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-mdpi_dark [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-svg [android] Twitter logo to X 2023-08-13 16:52:23 +02:00
resources-xhdpi_clear [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-xhdpi_dark [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-xxhdpi_clear [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-xxhdpi_dark [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-xxxhdpi_clear [styles] Regenerated 2023-10-28 16:25:49 -03:00
resources-xxxhdpi_dark [styles] Regenerated 2023-10-28 16:25:49 -03:00
search-icons/svg
sound-strings [strings] Regenerated 2023-10-15 11:39:02 +02:00
strings [android] Disable the screen wake lock by default 2023-11-05 10:44:35 +02:00
styles [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
vulkan_shaders Add texturing for the user arrow 2023-06-28 17:22:22 -03:00
00_NotoNaskhArabic-Regular.ttf
00_NotoSansThai-Regular.ttf
00_NotoSerifDevanagari-Regular.ttf Properly activate added Devanagari font 2023-07-12 20:29:15 -03:00
01_dejavusans.ttf
02_droidsans-fallback.ttf
03_jomolhari-id-a3d.ttf
04_padauk.ttf
05_khmeros.ttf
06_code2000.ttf
07_roboto_medium.ttf
borders_vs_osm.csv
broken_bookmarks.kmb.test
CaseFolding.test
categories.txt [strings] Italian: improve Kitchen and Bakery keywords 2023-11-04 05:01:04 +01:00
categories_brands.txt
categories_cuisines.txt [search] Separate vegan-vegetarian categories. 2023-02-25 09:32:21 -03:00
classificator.txt [styles] Regenerated 2023-10-28 16:25:49 -03:00
colors.txt [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
config.xsd [editor] XML config/edits rebranding (#4387) 2023-02-07 22:41:21 +01:00
copyright.html [styles] petting zoo 2023-10-20 23:37:33 +02:00
countries.txt [planet] New data from 230920. 2023-09-22 15:09:14 +02:00
countries_meta.txt
countries_names.txt [strings] Update countries_names.txt -> Added most important Polish cities via every voivodship (#6176) 2023-10-03 00:41:56 +02:00
countries_synonyms.csv
dictionary.slf
drules_proto-bw.bin
drules_proto.bin [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
drules_proto.txt [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
drules_proto_clear.bin [styles] Regenerated 2023-10-28 16:25:49 -03:00
drules_proto_clear.txt [styles] Regenerated 2023-10-28 16:25:49 -03:00
drules_proto_dark.bin [styles] Regenerated 2023-10-28 16:25:49 -03:00
drules_proto_dark.txt [styles] Regenerated 2023-10-28 16:25:49 -03:00
drules_proto_outdoors_clear.bin [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
drules_proto_outdoors_clear.txt [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
drules_proto_outdoors_dark.bin [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
drules_proto_outdoors_dark.txt [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
drules_proto_vehicle_clear.bin [styles] Regenerated 2023-10-28 16:25:49 -03:00
drules_proto_vehicle_clear.txt [styles] Regenerated 2023-10-28 16:25:49 -03:00
drules_proto_vehicle_dark.bin [styles] Regenerated 2023-10-28 16:25:49 -03:00
drules_proto_vehicle_dark.txt [styles] Regenerated 2023-10-28 16:25:49 -03:00
editor.config [editor] Follow up ce9d768c3a. 2023-11-03 17:35:01 +01:00
faq.html Remove route button in FAQ 2023-10-24 10:23:20 +02:00
fonts_blacklist.txt
fonts_whitelist.txt Properly activate added Devanagari font 2023-07-12 20:29:15 -03:00
hardcoded_categories.txt add second hand category, auction, collectors shops, turnstile & exit 2023-07-01 10:28:52 -03:00
hierarchy.txt
icudt73l.dat [3party] Upgrade ICU library to 73.2 2023-07-08 08:52:09 +02:00
languages.txt
mapcss-dynamic.txt
mapcss-mapping.csv [styles] Add amenity=compressed_air icon 2023-10-28 16:25:49 -03:00
minsk-pass.mwm
minsk-pass.osm.bz2
mixed_nodes.txt
mixed_tags.txt
mwm_names_en.txt
old_vs_new.csv
opening_hours_how_to_edit.html
packed_polygons.bin
patterns.txt [styles] Regenerate for outdoors style 2023-11-02 09:50:46 -03:00
replaced_tags.txt [styles] Add amenity=compressed_air icon 2023-10-28 16:25:49 -03:00
routing_statistics.log
skipped_elements.json
synonyms.txt
transit_colors.txt
types.txt [styles] Regenerated 2023-10-28 16:25:49 -03:00
unicode_blocks.txt
visibility.txt [styles] Regenerated 2023-10-28 16:25:49 -03:00
welcome.html
World.mwm [planet] New data from 230920. 2023-09-22 15:09:14 +02:00
WorldCoasts.mwm [planet] New data from 230920. 2023-09-22 15:09:14 +02:00