Alexander Borsuk
6209deeffa
[android] Removed NestedScrollView hack
...
The hack was introduced in this commit:
4a85620161
It mentions this Google issue: https://issuetracker.google.com/u/0/issues/37070828
and this source code for the hack:
https://rileymacdonald.ca/2018/08/06/android-nestedscrollview-children-require-double-click-scroll/
The latest AGP linter fails to find NestedScrollViewClickFixed class, likely because it is bound to
the external androidx.core.widget namespace instead of the app's one.
A quick testing didn't find any issues with the place page when this hack is removed.
Looks like it was already fixed in the upstream
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-12-11 11:10:32 +01:00
10135e0571
Fix rtl in bookmarks
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-12-10 19:31:34 +01:00
Jean-Baptiste
d83b9e485e
[android] Use simple quotes in build.gradle
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-12-08 12:55:06 +03:00
Mr. 17
2f9f1c6d6c
[android] Add feedback fab ( #6765 )
...
[android] Add feedback fab
Signed-off-by: Saptak Manna <saptakmanna100@gmail.com>
2023-12-07 10:26:21 -03:00
Andrew Shkrob
baa15f3390
[android-auto] Fix PendingIntent crash
...
Signed-off-by: Andrew Shkrob <andrew.shkrob.social@yandex.by>
2023-12-07 09:01:26 -03:00
e54a4a7f22
[android] Play TTS voice test using strings from selected TTS language
...
Signed-off-by: Gonzalo Pesquero <gpesquero@yahoo.es>
2023-12-07 08:55:32 -03:00
b899694b15
Remove latest mapsme mentions in Android
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-12-07 10:04:56 +01:00
4874276143
Remove HeightLimitedFrameLayout
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-12-07 10:02:12 +01:00
Alexander Borsuk
f5edcfc26f
[strings] Regenerated
...
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-12-06 23:27:08 +01:00
653647cfa0
Remove custom text input layout
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-12-05 19:47:12 +01:00
Alexander Borsuk
dff11dfcf4
[ios][android] Remove http(s) prefixes and / suffixes for websites in Place Page
...
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-12-04 21:16:09 +01:00
Alexander Borsuk
0fe7798012
[strings] Regenerated zh, fi
...
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-12-04 10:38:57 +01:00
791c0df166
Refactor opening_hours html
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-12-04 00:25:52 +01:00
3c798700da
[strings] Regenerated
...
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-03 19:56:53 +02:00
eee51c1b38
[android][ios] Rename "More on KAYAK" option and update icon
...
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-03 19:56:53 +02:00
3304528f11
[android] Suppress deprecated warning in TtsPlayer
...
An abstract method is marked as deprecated - no way to avoid.
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-03 17:53:37 +02:00
8a74a414d2
[android] Fix deprecated androidx.preference.PreferenceManager
...
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-03 17:53:37 +02:00
5f36ae2abe
[android] Fix deprecated NetworkInfo
...
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-03 17:53:37 +02:00
f1baadf536
[android] Fix deprecated Notification.PRIORITY_LOW
...
People at Google has to much spare time.
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-03 17:53:37 +02:00
b5bfa613e2
[android] Suppress deprecation warning for AsyncTask
...
https://developer.android.com/reference/android/os/AsyncTask :
> This class was deprecated in API level 30.
> Use the standard java.util.concurrent utilities instead.
Under the hood AsyncTask does exactly what Google said - uses the standard
java.util.concurrent utilities. There is nothing to fix. In the worst
case we will import this class into our repository.
https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/os/AsyncTask.java
Closes #3632
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-03 17:53:37 +02:00
a48c5919a8
[andorid] Fix deprecated Parcel.readParcelable()
...
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-03 17:53:37 +02:00
Michał Brzozowski
bbb6fe929c
[android] Fix non-unity build errors
...
Signed-off-by: Michał Brzozowski <www.haxor@gmail.com>
2023-12-03 12:42:15 +01:00
Harry Bond
3d9c5ef19e
[strings] add zh strings for "download the world map"
...
thanks to 南山少帅Felix on telegram
Signed-off-by: Harry Bond <hrbond@pm.me>
2023-11-30 22:44:07 +01:00
4c218d66cb
Refactor bookmark category fragment
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-11-29 22:40:54 +01:00
Harry Bond
266d9f7e61
[strings] regenerated
...
Signed-off-by: Harry Bond <hrbond@pm.me>
2023-11-28 12:00:16 -03:00
Harry Bond
ac33d4b94d
[strings] regenerated
...
Signed-off-by: Harry Bond <hrbond@pm.me>
2023-11-28 11:06:03 -03:00
Alexander Borsuk
2397b676b6
Fixed dependencies when building with -DSKIP_TESTS or -DSKIP_TOOLS
...
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-11-28 14:11:29 +01:00
6a1321fddc
[android] Enable Address Sanitizer (ASAN) for debug and beta
...
GWP-ASan is a native memory allocator feature that helps find use-after-free
and heap-buffer-overflow bugs. Its informal name is a recursive acronym,
"GWP-ASan Will Provide Allocation SANity". Unlike HWASan or Malloc Debug,
GWP-ASan does not require source or recompilation (that is, works with
prebuilts), and works on both 32- and 64-bit processes (although 32-bit
crashes have less debugging information).
Closes #6633
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-27 21:02:36 +02:00
6482e1bae2
[android] Enable Java 17 language features
...
Almost all the new Java 12-17 **language** features can be used now:
- Text Blocks
https://docs.oracle.com/en/java/javase/17/text-blocks/index.html
- Pattern Matching for switch Expressions and Statements
https://docs.oracle.com/en/java/javase/17/language/pattern-matching-switch-expressions-and-statements.html
- Pattern Matching for instanceof
https://docs.oracle.com/en/java/javase/17/language/pattern-matching-instanceof-operator.html
- Sealed Classes
https://docs.oracle.com/en/java/javase/17/language/sealed-classes-and-interfaces.html
- Record Classes
https://docs.oracle.com/en/java/javase/17/language/records.html
This feature requires `java.lang.Record` class which is not available on
old devices, but R8/D8 compiler in Android does so-called 'desugaring'.
https://android-developers.googleblog.com/2023/06/records-in-android-studio-flamingo.html
More details on https://docs.oracle.com/en/java/javase/17/language/java-language-changes.html
Please note that Java 17 support doesn't extend to the new system classes
and APIs as they may not be available on old devices. The build toolchain
validates APIs based on the value minSdk setting, which is still API=21.
Certain APIs are available even on the old devices via R8/D8 'desugaring'.
See https://developer.android.com/build/jdks#compileSdk for details.
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-26 09:58:51 +02:00
950dd51a66
Fix distance color in ruler mode
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-11-25 14:58:00 +01:00
Alexander Borsuk
6c65e90080
[android] Upgrade agp to 8.1.4
...
Upgrade other dependencies too
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-11-25 15:50:29 +02:00
Viktor Govako
697f378d07
[strings] Regenerated.
...
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2023-11-24 20:54:36 -03:00
David Martinez
95c80cbceb
[strings] Regenerated
...
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2023-11-24 17:54:25 -03:00
7c6da4d6ff
[android] Use system locale for map size and download progress strings
...
Signed-off-by: Gonzalo Pesquero <gpesquero@yahoo.es>
2023-11-23 11:02:20 +02:00
Walter White
401a3a808d
[android] Dismiss spinner when user aborts downloading area
...
Closes #6126
Signed-off-by: Walter White <WalterWhite@walterjwhite.com>
2023-11-23 11:08:32 +03:00
e706025dd3
Don't show snackbar after text is copy to clipboard
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-11-23 10:04:12 +02:00
Viktor Govako
945f83bdce
[search] Added Feature->Place index.
...
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2023-11-22 12:39:58 -03:00
9696a83ec3
[android] Fix ClassNotFoundException .bookmarks.data.BookmarkCategory
...
Regression by 4cadc09
Related to #143 and #3757
Closes #6629
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-22 09:41:14 +02:00
ca049dc4f2
[map][android][ios] Support geo:0,0?q=Search string
URLs
...
New URLs/APIs:
- `geo:35.341714,33.32231` - show a point
- `geo:35.341714,33.32231 (Custom%20Title)` - show a point with title
- `geo:0,0?q=35.341714,33.32231` - show a point
- `geo:0,0?q=35.341714,33.32231 (Custom%20Title)` - show a point with title
- `geo:35.3381607,33.3290564?q=Kyrenia%20Castle` - search for something
- `geo:0,0?q=Kyrenia%20Castle` - search for something
Android testing:
```
adb shell am start -a android.intent.action.VIEW -d '"geo:35.3381607,33.3290564?q=Where%20to%20eat"'
```
iOS testing:
```
xcrun simctl openurl booted 'geo:35.3381607,33.3290564?q=Where%20to%20eat'
```
Closes #320
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-21 18:13:26 -03:00
David Martinez
8d0dffebcf
[strings] Regenerated
...
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2023-11-21 18:12:07 -03:00
David Martinez
ee1eb0d8e6
[search][android] Add Paid/Free indicator to search results
...
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2023-11-21 18:12:07 -03:00
Alexander Borsuk
add2242230
[strings] Regenerated ru
...
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-11-21 11:42:22 +01:00
46cb82b4a3
[android] Make Drape the source of truth for the location mode changes
...
Drape changes the location mode under the hood in multiple cases, which
creates the discrepancy between Android <-> Drape state. Trust Drape
and do all location mode transitions only via onMyPositionModeChanged().
Follow up #1128 #4376 #6098 #6465 #6466
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-20 08:54:00 +02:00
fd89eb9b76
[android] Fix coding error in checkCoarseLocationPermission()
...
Regression by 86bbe48
"[android] Add Android Auto support"
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-20 08:53:11 +02:00
6a24e38d03
[android] Refactor API and Intent processing
...
- Remove MapTask abstraction in favor of Intents.
- Process intents and API after creation of Drape.
- Restore routing only after creation of Drape (fixes #3441 ).
- Start location only after creation of Drape (fixes #1128 ).
- Remove double parsing of `backurl` in URLs.
**Test Plan:**
- Check URLs from http://omaps.app/test.html .
- Check KML/KMZ/GPX files.
- Check "Pick point" from https://github.com/organicmaps/api-android .
- Download Maps -> any downloaded map -> Show on the map.
- Bookmarks -> any list -> click on a blue button the bottom right.
- Bookmarks -> any list -> click on any bookmark.
- Start navigation -> kill the app **via system settings** ->
start the app again and check that routing planned is started.
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-19 20:27:45 +02:00
vigeron
70d0a990e4
Update F-Droid translations (Polish) ( #6611 )
...
* Update F-Droid translations (Polish)
Signed-off-by: vigeron <16254462+vigeron@users.noreply.github.com>
* Update android/app/src/fdroid/play/listings/pl-PL/release-notes.txt
Signed-off-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
---------
Signed-off-by: vigeron <16254462+vigeron@users.noreply.github.com>
Signed-off-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
2023-11-19 14:36:22 +01:00
763310f778
Fix Android Studio warnings
...
Signed-off-by: Jean-BaptisteC <jeanbaptiste.charron@outlook.fr>
2023-11-19 09:29:55 +01:00
mcliquid
457da0f4d2
[store] Update F-Droid translations (German)
...
Currently translated at 100.0% (6 of 6 strings)
Signed-off-by: mcliquid <info@mcliquid.de>
Translate-URL: https://hosted.weblate.org/projects/organicmaps/fdroid-metadata/de/
2023-11-18 19:18:27 +02:00
Fjuro
cb39ab52c9
[store] Update F-Droid translations (Czech)
...
Currently translated at 100.0% (6 of 6 strings)
Signed-off-by: Fjuro <ifjuro@proton.me>
Translate-URL: https://hosted.weblate.org/projects/organicmaps/fdroid-metadata/cs/
2023-11-18 19:18:27 +02:00
Alexander Borsuk
933ececdbd
Renamed Descriptions to WikiDescriptions for clarity
...
We also have OSM descriptions tag values
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-11-18 14:11:27 +01:00