Commit graph

27016 commits

Author SHA1 Message Date
Igor B. Poretsky
27ca930abd Don't hide map controls in accessibility mode. 2016-04-10 14:20:17 +03:00
Igor B. Poretsky
a8fecfca7a Added Ok button title in the accessibility mode. 2016-04-10 14:20:15 +03:00
Igor B. Poretsky
02031fcd91 Don't show incomprehensive code of default color in accessibility
mode.
2016-04-10 14:20:13 +03:00
Igor B. Poretsky
bf8dd4180b Implemented category choice dialog when adding favourites in accessibility mode. 2016-04-10 14:20:12 +03:00
Igor B. Poretsky
43860e4561 Point editor accessibility fix. 2016-04-10 14:20:10 +03:00
Igor B. Poretsky
2422bb5fe2 Map widgets accessibility improvement.
When a widget is visible in accessibility mode it becomes focusable
that allows to find it and explore with accessibility gestures.
2016-04-10 14:20:08 +03:00
Igor B. Poretsky
089816ea32 Dynamically set contentDescription attribute for compass and back to
location map widgets.
2016-04-10 14:20:06 +03:00
Igor B. Poretsky
ac5bad0c35 Provided turn tip map widgets accessibility feedback. 2016-04-10 14:20:04 +03:00
Igor B. Poretsky
24eb13e3ae Provided contentDescription attribute for the dashboard action
buttons.
2016-04-10 14:20:02 +03:00
Igor B. Poretsky
77e640ac34 Improved application mode switch map widget by proper filling its
contentDescription field.
2016-04-10 14:20:00 +03:00
Igor B. Poretsky
eb85d0e0df Improved application mode switch accessibility by proper filling
contentDescription field of its elements.
2016-04-10 14:19:59 +03:00
Igor B. Poretsky
ce3c6fb34d Improved context menu accessibility by dynamically filling
contentDescription of the action button.
2016-04-10 14:19:57 +03:00
Igor B. Poretsky
d7b1f7e6b5 Improved expandable lists accessibility by dynamically filling
contentDescription field of the sublist headers.
2016-04-10 14:19:56 +03:00
Igor B. Poretsky
d888126885 List item embedded button accessibility fix
In accessibility mode it should be clickable by a regular gesture.
2016-04-10 14:19:54 +03:00
Igor B. Poretsky
d9a68aaabc Contextually filled contentDescription field of the list format toggle
button.
2016-04-10 14:19:53 +03:00
Igor B. Poretsky
6eca1ca255 Contextually filled contentDescription field of the plugin list item
related buttons.
2016-04-10 14:19:51 +03:00
Igor B. Poretsky
e7360127bf Fix 2016-04-10 14:19:49 +03:00
Igor B. Poretsky
cb5b661e59 Contextually filled contentDescription field of the collapsible
widgets.
2016-04-10 14:19:48 +03:00
Igor B. Poretsky
1d498443a8 Filled contentDescription field of the download list item related buttons. 2016-04-10 14:19:46 +03:00
Igor B. Poretsky
41a593a52b Filled contentDescription field of some context dependent elements. 2016-04-10 14:19:45 +03:00
Igor B. Poretsky
db6df0c349 Filled navigationContentDescription field in toolbars. 2016-04-10 14:19:43 +03:00
Igor B. Poretsky
0ceb244730 Filled contentDescription field of the point list item related
buttons.
2016-04-10 14:19:41 +03:00
Igor B. Poretsky
60a6b92d9a Filled contentDescription field of the most graphic elements that should be accessible.
Only layout files are touched and no new strings added.
2016-04-10 14:19:40 +03:00
Igor B. Poretsky
e52ee6f9bc Russian translation correction. 2016-04-10 14:19:38 +03:00
Alexey Kulish
f91d0b0876 Fix #2441 2016-04-10 11:43:12 +03:00
Weblate
7a45b26535 Merge remote-tracking branch 'origin/master' 2016-04-10 10:05:59 +02:00
Guntis Ozols
a3f3779abe Translated using Weblate (Latvian)
Currently translated at 99.6% (1945 of 1951 strings)
2016-04-10 10:05:49 +02:00
Viktar Palstsiuk
b7c0479804 Translated using Weblate (Belarusian)
Currently translated at 99.8% (1949 of 1951 strings)
2016-04-10 10:05:45 +02:00
Alexey Kulish
a810c531f4 Fix #2430 2016-04-10 11:05:35 +03:00
vshcherb
1afe5216f2 Merge pull request #2443 from poretsky/review_160408_proposal
[Review] Request from 'poretsky' @ 'poretsky/Osmand/review_160408_proposal'
2016-04-09 14:23:03 +02:00
Victor Shcherb
0d64d52f48 Revert "Update to gradle plugin v2.0"
This reverts commit c749bc1455.
2016-04-09 14:20:27 +02:00
Ajeje Brazorf
62f546c3f9 Translated using Weblate (Sardinian)
Currently translated at 100.0% (1951 of 1951 strings)
2016-04-08 19:30:03 +02:00
Alexey Kulish
19146b21eb Fix AND-451 3/4 2016-04-08 19:07:12 +03:00
GaidamakUA
c749bc1455 Update to gradle plugin v2.0 2016-04-08 18:48:48 +03:00
GaidamakUA
c4f3a6fbc2 Better switch logic for Underlay/Overlay 2016-04-08 17:32:34 +03:00
GaidamakUA
2bc8ef25a3 Fixed Underlay Map layout. 2016-04-08 15:09:18 +03:00
GaidamakUA
214c690b71 Fixed Overlay Map layout. 2016-04-08 15:04:27 +03:00
GaidamakUA
af90a35f15 Tiny list item layout tweaks. 2016-04-08 15:04:27 +03:00
Mirco Zorzo
519b97897f Translated using Weblate (Italian)
Currently translated at 100.0% (1951 of 1951 strings)
2016-04-08 11:57:04 +02:00
CJTmmr
bbe60cfb9d Translated using Weblate (Dutch)
Currently translated at 100.0% (1951 of 1951 strings)
2016-04-08 10:45:57 +02:00
Igor B. Poretsky
8cbd5db867 Added a few Russian translations. 2016-04-08 07:49:17 +03:00
Igor B. Poretsky
2ff6382c02 More exact direction instructions in Russian. 2016-04-08 07:49:16 +03:00
Igor B. Poretsky
9195f3cf9d Removed obsolete and anyway unused touch exploration mode for map
view.
2016-04-08 06:05:35 +03:00
Igor B. Poretsky
719529d893 Removed obsolete accessibility options. 2016-04-08 06:05:33 +03:00
ace shadow
82b947e7f0 Translated using Weblate (Slovak)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-07 20:27:28 +02:00
GaidamakUA
d89161a6ce Fixed bug with back button on GPX dialog. 2016-04-07 14:09:42 +03:00
Weblate
ed124b62ef Merge remote-tracking branch 'origin/master' 2016-04-07 12:21:26 +02:00
jan madsen
f1787c1982 Translated using Weblate (Danish)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-07 12:21:13 +02:00
GaidamakUA
4f0de12515 Configure map small tweak. 2016-04-07 13:21:04 +03:00
jan madsen
148f88bb6b Translated using Weblate (Danish)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-07 11:38:58 +02:00
sonora
573b162037 use shared_string_none 2016-04-07 11:06:13 +02:00
Weblate
b2e76b65c6 Merge remote-tracking branch 'origin/master' 2016-04-07 10:26:26 +02:00
Franco
6ae276be33 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-07 10:26:19 +02:00
GaidamakUA
df5fe90b96 Finalized configure map and configure screen. 2016-04-07 11:26:08 +03:00
ezjerry liao
edd55fa1cd Translated using Weblate (Traditional Chinese)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-07 04:16:36 +02:00
Igor B. Poretsky
8a2064fd4f Removed obsolete accessibility wrapper for the Toast widget. 2016-04-07 02:49:21 +03:00
Igor B. Poretsky
9b5acdb32f Removed obsolete accessibility wrapper for AlertDialog.Builder class. 2016-04-07 02:49:16 +03:00
Igor B. Poretsky
d5078bbf52 Removed obsolete accessibility wrappers. 2016-04-07 02:49:11 +03:00
Weblate
dd713dd63d Merge remote-tracking branch 'origin/master' 2016-04-07 01:19:02 +02:00
Franco
1daf31516e Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-07 01:18:55 +02:00
Roberto GEB
26ccb01091 Translated using Weblate (Spanish)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-07 01:18:54 +02:00
Viktar Palstsiuk
6b081278f0 Translated using Weblate (Belarusian)
Currently translated at 99.8% (1954 of 1957 strings)
2016-04-07 01:18:47 +02:00
sonora
803ca9c726 use localized none string 2016-04-07 01:18:30 +02:00
jf-simon
39df65ffc4 Translated using Weblate (German)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-06 21:56:19 +02:00
Franco
5a87d17833 Translated using Weblate (Spanish)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-06 18:44:59 +02:00
Franco
f86cafb6c6 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-06 18:42:33 +02:00
Roberto GEB
cfb73f627c Translated using Weblate (Spanish)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-06 18:20:57 +02:00
Weblate
25c73e84c7 Merge remote-tracking branch 'origin/master' 2016-04-06 18:16:17 +02:00
Roberto GEB
731854ac90 Translated using Weblate (Spanish)
Currently translated at 99.4% (1946 of 1957 strings)
2016-04-06 18:16:11 +02:00
Ldm Public
fa5a753e45 Translated using Weblate (French)
Currently translated at 99.8% (1955 of 1957 strings)
2016-04-06 18:16:06 +02:00
GaidamakUA
c59acacc60 Prevent POI dialog from dropping scroll in configure map. 2016-04-06 19:15:58 +03:00
jan madsen
a8cc1aafb9 Translated using Weblate (Danish)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-06 18:07:32 +02:00
josep constanti
90a41b166c Translated using Weblate (Catalan)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-06 17:35:59 +02:00
GaidamakUA
dc33fc57ef Showing active poi name in configure map. 2016-04-06 18:10:46 +03:00
Igor B. Poretsky
606450dd26 Obvious typo fix in Russian strings. 2016-04-06 17:57:37 +03:00
GaidamakUA
c9914c75d8 Showing active poi name in configure map. 2016-04-06 17:45:13 +03:00
ezjerry liao
fe698aca4d Translated using Weblate (Traditional Chinese)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-06 16:18:58 +02:00
jan madsen
25e736a8a1 Translated using Weblate (Danish)
Currently translated at 100.0% (1957 of 1957 strings)
2016-04-06 15:54:29 +02:00
Weblate
a0efd289b9 Merge remote-tracking branch 'origin/master' 2016-04-06 15:40:46 +02:00
Leif Larsson
1cf0551cff Translated using Weblate (Swedish)
Currently translated at 98.7% (1931 of 1956 strings)
2016-04-06 15:40:39 +02:00
Viktar Palstsiuk
2498710883 Translated using Weblate (Belarusian)
Currently translated at 99.5% (1947 of 1956 strings)
2016-04-06 15:40:32 +02:00
GaidamakUA
544d3f8dd1 Formatting. 2016-04-06 16:40:11 +03:00
GaidamakUA
d651732a76 GPX second line for configure screen. 2016-04-06 16:40:11 +03:00
jf-simon
3a3c8124a5 Translated using Weblate (German)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-06 10:23:08 +02:00
Allan Nordhøy
cc57dbf62c Translated using Weblate (Norwegian Bokmål)
Currently translated at 76.0% (1487 of 1956 strings)
2016-04-06 08:34:59 +02:00
jan madsen
0356acd688 Translated using Weblate (Danish)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-06 08:34:56 +02:00
ezjerry liao
b9fcd1b7d2 Translated using Weblate (Traditional Chinese)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-06 04:51:21 +02:00
Mirco Zorzo
4e53b13df3 Translated using Weblate (Italian)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-05 23:28:45 +02:00
josep constanti
6c5678623d Translated using Weblate (Catalan)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-05 23:21:02 +02:00
Franco
37898dd72a Translated using Weblate (Spanish)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-05 21:04:45 +02:00
Ldm Public
41153340ad Translated using Weblate (French)
Currently translated at 99.8% (1954 of 1956 strings)
2016-04-05 21:04:40 +02:00
Franco
e1d1289396 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-05 18:23:31 +02:00
Franco
09eb8ec891 Translated using Weblate (Spanish)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-05 18:21:27 +02:00
jan madsen
c6161a71ac Translated using Weblate (Danish)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-05 18:11:45 +02:00
xmd5a
e953e77ae5 Update strings 2016-04-05 19:03:19 +03:00
GaidamakUA
fb1bec7b7d Made ContextMenuAdapter use icon cache. 2016-04-05 18:25:13 +03:00
GaidamakUA
59e571ef77 Renamed method in IconsCache 2016-04-05 18:25:13 +03:00
GaidamakUA
af98243576 Removed duplicating method. 2016-04-05 18:25:13 +03:00
Roman Inflianskas
c80bba6a33 Merge remote-tracking branch 'origin/master' (manually for weblate) 2016-04-05 17:34:45 +03:00
GaidamakUA
56b8c62b5b Fixed fonts and changed naming. 2016-04-05 16:52:00 +03:00
josep constanti
ee3386a64d Translated using Weblate (Catalan)
Currently translated at 99.4% (1946 of 1956 strings)
2016-04-05 14:23:22 +02:00
GaidamakUA
5aa04f6446 Fixed drawer items. 2016-04-05 15:23:06 +03:00
Alexey Kulish
1daa622890 Merge remote-tracking branch 'origin/master' 2016-04-05 14:04:24 +03:00
GaidamakUA
599294f948 Removed bold for categories and added light sensor icon. 2016-04-05 14:01:06 +03:00
GaidamakUA
a6b206ae07 Changing icon for map mode. 2016-04-05 13:28:16 +03:00
GaidamakUA
08291f86bb Removed caps for categories 2016-04-05 13:28:16 +03:00
GaidamakUA
40b1aaae0f Fix for day/night map mode. 2016-04-05 13:28:16 +03:00
Victor Shcherb
22e1937334 Fix issues 2016-04-05 13:27:50 +03:00
Weblate
7f72ed8375 Merge remote-tracking branch 'origin/master' 2016-04-05 10:02:58 +02:00
Matej U
6fb02b6439 Translated using Weblate (Slovenian)
Currently translated at 99.9% (1955 of 1956 strings)
2016-04-05 10:02:52 +02:00
Victor Shcherb
a46a2ac46e Update methods 2016-04-05 11:02:36 +03:00
Victor Shcherb
ec8a3f1f0f Update methods 2016-04-05 11:02:19 +03:00
Alexey Kulish
6c2da87be5 Temp fix white background in configure map 2016-04-04 19:57:48 +03:00
GaidamakUA
5013c8d44d Fixed highlight for buttons. 2016-04-04 19:01:34 +03:00
GaidamakUA
95d6ccd9fa Configure map. 2016-04-04 17:53:57 +03:00
GaidamakUA
615e869a03 Fixed item layout. 2016-04-04 17:53:57 +03:00
GaidamakUA
9118075dac Bigger Map mode buttons. 2016-04-04 17:53:57 +03:00
GaidamakUA
72b5cf9fcf Configure screen finalized. Added divider for LiveUpdates. 2016-04-04 17:53:57 +03:00
vshcherb
63ab190eb2 Merge pull request #2413 from andrew-davie/minimal
GPX asynchronous line drawing - super quick MINIMAL code set
2016-04-04 17:21:00 +03:00
Alexey Kulish
b826b1d1fa Fix swipe 2016-04-04 15:30:17 +03:00
Alexey Kulish
cf80f25d19 Fix #2419 2016-04-04 13:32:55 +03:00
GaidamakUA
2422198dad Fixed orange color 2016-04-04 13:21:57 +03:00
GaidamakUA
c9540d7af8 Fixed layout for configure screen item. 2016-04-04 12:56:38 +03:00
Weblate
318c9e1bf4 Merge remote-tracking branch 'origin/master' 2016-04-04 09:48:59 +02:00
Franco
2cd40b2cb4 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-04 09:48:53 +02:00
Franco
378392ff1e Translated using Weblate (Spanish)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-04 09:48:53 +02:00
Osoitz
df65d18d2a Translated using Weblate (Basque)
Currently translated at 55.0% (1076 of 1956 strings)
2016-04-04 09:48:45 +02:00
Hardy
98900c1ff6 small code streamlining 2016-04-04 09:48:42 +02:00
CJTmmr
6fe8e8c924 Translated using Weblate (Dutch)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-03 21:19:50 +02:00
Ajeje Brazorf
cefbabf11d Translated using Weblate (Sardinian)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-03 20:59:09 +02:00
sonora
455ee0775a fix stop refresh behavior 2016-04-03 17:35:54 +02:00
Andrew Davie
9f0bcf3257 MINIMAL code set for GPX line drawing
Has all the structure of the classes needed for extension to arrows/markers/whatever.
However, this is just the minimal subset of those base classes required to implement the line drawing functionality
with the asynchronous resampling, and fully compatible with 'current track' which is NOT resampled in any way.

These files are a branch from the prior pull request, and hopefully will make everyone more comfortable about including
the code. The altitude and speed displays, all the bells and whistles - that can come later if needed.
2016-04-04 00:30:07 +10:00
sonora
7933165790 try fix button appearance of GPX tracking shortcuts 2016-04-03 15:52:41 +02:00
sonora
a671d19356 use clearer string 2016-04-03 15:37:28 +02:00
ace shadow
3813183a3d Translated using Weblate (Slovak)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-03 15:36:49 +02:00
Andrew Davie
ceddb50e60 Minimised calls to getPixXFromLatLon and getPixYFromLatLon during main draw loop
In the drawing loop, culling was performed on pixel boundaries based on x/y positions compared to the tileBox x/y position,
however calculating these from lat/lon was quite a slow process involving calls to getPixXFromLatLon and getPixYFromLatLon
which in turn had a horrendous amount of calculations happening. But since the tileBox has lat/lon and the pixel/lines being
drawn also have lat/lon it seems reasonable - despite potential spherical issues on lat/lon coordinates (?) to just use the
lat/lon as a visibility cull. So, that's what I've done and it does seem to work OK.  Heaps faster; aside from the actual
line draw we're talking a couple orders of magnitude improvement in speed.  Getting really zippy now, even when drawing
groups super big tracks, and I mean big - hundredsof thousands of points big.

The video at https://youtu.be/J1ppW3_hWds shows well over a thousand kilometers of tracks, 230 thousand points.
2016-04-03 23:31:15 +10:00
sonora
829be9901f test suppress creating extra nav notification 2016-04-03 14:49:14 +02:00
sonora
478e2512bf improve formatting 2016-04-03 14:44:52 +02:00
sonora
7b926d000a fix display 2016-04-03 13:53:47 +02:00
sonora
fef54b35d3 fix build 2016-04-03 13:17:08 +02:00
sonora
5feef3404c Display track distance in save track option in settings 2016-04-03 12:59:35 +02:00
sonora
d96505411d better comment 2016-04-03 12:35:59 +02:00
sonora
a88b9f12b0 Suppress debatable purpose trip recording notification 2016-04-03 12:16:56 +02:00
jf-simon
c0dfb730aa Translated using Weblate (German)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-03 11:46:50 +02:00
Victor Shcherb
11a9c2df16 Fix GPX recording without plugin #2407 2016-04-03 11:55:13 +03:00
Franco
5860511c6e Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-03 10:34:49 +02:00
Matej U
75d399583a Translated using Weblate (Slovenian)
Currently translated at 99.9% (1955 of 1956 strings)
2016-04-03 10:34:49 +02:00
Piotr Sokół
2d189bb0be Translated using Weblate (Polish)
Currently translated at 99.8% (1953 of 1956 strings)
2016-04-03 10:34:48 +02:00
Ldm Public
5616e30875 Translated using Weblate (French)
Currently translated at 99.8% (1954 of 1956 strings)
2016-04-03 10:34:44 +02:00
josep constanti
0387161b60 Translated using Weblate (Catalan)
Currently translated at 97.7% (1912 of 1956 strings)
2016-04-03 10:34:42 +02:00
Viktar Palstsiuk
b75c6a1824 Translated using Weblate (Belarusian)
Currently translated at 99.5% (1947 of 1956 strings)
2016-04-03 10:34:42 +02:00
Franco
862e183d79 Translated using Weblate (Spanish)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-02 22:33:57 +02:00
ezjerry liao
0be0c02c3f Translated using Weblate (Traditional Chinese)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-02 20:41:13 +02:00
Andrew Davie
209203acd3 Resample of Arrows, Speed, Altitude and Conveyor enabled
By enabling on-zoom resampling of arrows, speed, altitude and conveyor data it is possible to more effectively
tailor the visuals of these renderers. For example, the altitude and speed are point-reduced based on zoom, and now
look much cleaner at low zoom values.  Likewise, the arrows are now rendered at consistent size regardless of
zoom. Also, the conveyor segments are similar length onscreen regardless of zoom. During a zoom change, the
prevoiusly resampled track is killed, so there is a brief flash while the appropriate track is resampled. This
appeared visually better than drawing the old track with incorrect spacing/scaling.
2016-04-03 03:40:56 +10:00
Andrew Davie
3e13d309f6 "Massive" optimisation - on-demand culling for GPX tracks
A bit of inspiration; rather than trigger the culling for tracks when they are loaded and every time you zoom
(i.e, creating the resampled or simplified tracks such as standard track (Ramer Douglas Peucer line reduction), arrows,
speed, markers (all resample)... now the system uses the bounding rectangle of the original track to trigger the cull(s)
only when the track is onscreen and viewable. This now allows dozens of tracks to be loaded without initial slowdown
caused by all those resamplers and cullers running in the background. It's an on-demand system, in other words.

So, whereas previously if you had 20 GPX tracks loaded, and you zoomed in/out, then all 20 of those tracks would start
a Ramer-Douglas-Peucer resize, which would significantly slow down the whole thing (even though they are asynchronous
they do take a toll on performance).  Now, when you zoom in/out, only visible tracks (or ones which become visible)
will start the RDP resize.
2016-04-03 01:04:26 +11:00
Andrew Davie
66128c8c66 Merge remote-tracking branch 'upstream/master' 2016-04-02 22:07:21 +11:00
Andrew Davie
e88c37599a visible render layers changed 2016-04-02 20:44:16 +11:00
Andrew Davie
ff29a1a744 Optimisation. Line culler slightly quicker. 2016-04-02 20:30:59 +11:00
Andrew Davie
6371dd2da4 reconfigured to display speed render 2016-04-02 18:57:56 +11:00
Andrew Davie
4474c9421a Optimised. Checked/fixed 0/1 point boundary conditions. Fixed speed.
I've done quite a bit of refactoring on the asynchronous resamplers to optimise the code. I've also checked carefully
the boundary cases of 0 and 1 point lists and ensured that they operate OK. Fixed up the speed resampler, which was
placing results in the wrong list :)
2016-04-02 18:51:20 +11:00
Andrew Davie
aac22d9e41 Changed culled to always non-null 2016-04-02 14:04:26 +11:00
Franco
e9668d1461 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-01 21:02:45 +02:00
sonora
180f5c3714 test something 2016-04-01 17:38:27 +02:00
sonora
12815491d9 hide notification if nothing is ongoing 2016-04-01 17:15:15 +02:00
Andrew Davie
b7d826483c Paint/context preserving local state
I got to thinking that the paint variable state should be preserved after the drawing functions did their stuff. Saving
and restoring individual values inside each function was getting messy, so I implemented a local paint variable which
was updated with the important stuff from the passed-in paints. The local variable is now used for all painting/drawing
and the original paint guaranteed unchanged. I could see issues elsewhere if I changed something and other code
was assuming it was already set.  So, quite a bit of fiddling with the code to get this working, but now it's clean.

I also did a bit of work on the arrows - see video at https://youtu.be/wvE9HUDMqSM

Basically they're much nicer, but also they are coloured. It's just an experimental thing, where the colour is based
upon the distance along the track; using the same rainbow scaling as the altitude display does; that is... purple up
to red.
2016-04-02 01:55:58 +11:00
sonora
e868ebce01 remove notification line breaks for now 2016-04-01 16:47:15 +02:00
jan madsen
8dfb592b2c Translated using Weblate (Danish)
Currently translated at 100.0% (1956 of 1956 strings)
2016-04-01 16:44:54 +02:00
xmd5a
e027289d28 Update strings 2016-04-01 17:22:29 +03:00
sonora
e020df1bde small fix 2016-04-01 16:06:19 +02:00
sonora
82545c0fda see if notification takes line breaks 2016-04-01 15:59:29 +02:00
sonora
8aaaab9bad try improve weird notification behavior, particularly for GPX recording 2016-04-01 15:49:10 +02:00
GaidamakUA
5bde48b2e6 Fixed menu for configure screen. 2016-04-01 15:56:11 +03:00
Alexey Kulish
2c74e887a1 Fix https://github.com/osmandapp/Osmand/issues/2389 2016-04-01 13:04:09 +03:00
Alexey Kulish
bf1dac5b06 Fix https://github.com/osmandapp/Osmand/issues/2393 2016-04-01 12:40:37 +03:00
GaidamakUA
332167378c Partially fixed layout for configure map. 2016-04-01 12:08:20 +03:00
GaidamakUA
47cbc0771e Fixes #2387. All GPX tracks no longer selected by default. 2016-04-01 11:31:07 +03:00
Weblate
7e3e8293d2 Merge remote-tracking branch 'origin/master' 2016-04-01 10:05:23 +02:00
Hinagiku Zeppeki
f67893cf78 Translated using Weblate (Japanese)
Currently translated at 99.9% (1952 of 1953 strings)
2016-04-01 10:05:13 +02:00
Xosé Calvo
e7e4f642d8 Translated using Weblate (Galician)
Currently translated at 95.5% (1866 of 1953 strings)
2016-04-01 10:05:12 +02:00
GaidamakUA
3da81e2a48 Fixes #2390. And some cleanup. 2016-04-01 11:04:21 +03:00
Andrew Davie
778a243cdf Bugfix: Current Track disappeared when starting point wandered offscreen
The 'bounds' that I had implemeted earlier described the minimal rectangle inside which a whole track was contained. This
bounding rectangle was used to quickly cull all track types at draw-time. And it worked well... too well!  The current track
is continually adding points to itself, so its bounds need to be recalculated regularly, not just at startup like other
track types.

So, I've implemented a new Renderable, 'CurrentTrack' which does the special handling for that type of track. It is
smart in that it only recalculates/updates bounding rectangle on the newly added points, so it's very quick. I tested
it on my phone and it appears to be working OK.

Other minor adjustments here and there as I tweak things.
2016-04-01 17:00:02 +11:00
Andrew Davie
3fc4702c9e Epsilon for line simplification was using incorrect value - now much nicer
Fixed a bug related to the distance used for line reduction. The previous value of zoom was being used, instead
of the new value. This kind of explains why I could see line reduction changes more than I though I should have
been able to. Now it's looking very nice. I don't think there will be many more changes. If any.
2016-04-01 04:22:31 +11:00
Andrew Davie
160f280ee1 minor fixup - make sure Conveyor Render checks the track limits early-on 2016-04-01 04:09:36 +11:00
Andrew Davie
71e84acc9f Final pass clean-up on code. It's done.
I've been through and cleaned up the code - minor improvements and cleanups. I'm happy with it and will I stop making
changes and wait for review. I also now understand how git branches work :) so I will work on my own branch.
I hope that this addition makes it into OsmAnd; I'm confident that it is robust and well written.
There will probably be a bug or two, but relatively minor I am sure.
2016-04-01 03:29:05 +11:00
Andrew Davie
112ffdd69a Final pass clean-up on code. It's done.
I've been through and cleaned up the code - minor improvements and cleanups.
It's done. Now that I'm happy with it I propose to stop making changes and wait for review.
I also now understand how git branches work, so I will work on my own branch.
I hope that this addition makes it into OsmAnd; I'm confident that it is robust and well written.
2016-04-01 02:48:03 +11:00
GaidamakUA
15ee1beed9 Made description clickable. 2016-03-31 18:47:08 +03:00
GaidamakUA
a3ca01255d Description initialization. 2016-03-31 17:50:12 +03:00
GaidamakUA
d9f7ac5a50 New icons for widgets. 2016-03-31 17:41:09 +03:00
GaidamakUA
88cffc0740 Added description as indication that view is collapsed. 2016-03-31 17:33:46 +03:00
Andrew Davie
7ee1cae93c Prevented current track from participating in line reduction
The current track is constantly changing. It is not suitable for the line culling stuff, so that track is detected
and special-cased.
2016-04-01 01:18:20 +11:00
Dmitriy Prodchenko
2600377b9a New icons for Configure Screen. 2016-03-31 16:46:55 +03:00
GaidamakUA
fe2f690aba Fixes #2394. Problem with 2.3 compatibility. 2016-03-31 16:09:25 +03:00
GaidamakUA
6dbf547579 Small changes. 2016-03-31 16:09:25 +03:00
GaidamakUA
413aad56a9 Fixed bug with changing all instances of drawable. 2016-03-31 16:09:25 +03:00
GaidamakUA
a0f78e64a8 Deprecation of IconsCacheMethods. 2016-03-31 16:09:25 +03:00
Weblate
47b71145da Merge remote-tracking branch 'origin/master' 2016-03-31 14:49:04 +02:00
Ajeje Brazorf
b81ecbc5c3 Translated using Weblate (Sardinian)
Currently translated at 70.2% (1734 of 2469 strings)
2016-03-31 14:49:03 +02:00
CJTmmr
18a84398e5 Translated using Weblate (Dutch)
Currently translated at 100.0% (1953 of 1953 strings)
2016-03-31 14:48:52 +02:00
Dmitriy Prodchenko
d259c3b0da Fix arrow height for lanes widget. 2016-03-31 15:48:33 +03:00
Andrew Davie
7e9afc68d6 Arrows renderer now working reasonably well.
I put a bit of effort into "pretty". Also, arrows are not displayed until a particular zoom level.
Sample video of this version with the following renderers active: rainbow altitude band, original track, distance
markers and arrows. See video at https://youtu.be/FNui0zxJGJI

Seems to be pretty solid for all renderers. Speed is good. This is close to a "final" version.
2016-03-31 22:57:04 +11:00
Andrew Davie
e8e6ca2854 Found/fixed crash bug in Altitude renderer
Out of memory bug happened occasionally - now fixed by writing to original canvas instead of creating its own
bitmap buffer. It's going to be a lot quicker, too. Since the altitude band is now solid, though, it should be
in the renderer list before the standard track segment.

I have also done some work on the distance/marker renderer, and that is enabled in this update. It draws the
distance (km) as a marker and number over the top of each track.

I went for a ride on my motorbike today to check out how some of the changes work. The "current track" stuff
is hopeless, so that needs to be fixed. Basically I was trying to NOT resample the current track, as it
causes all sorts of speed issues when points are continually added and resamples are continually fired. But
my change clearly didn't work properly so I will revisit that shortly.

I do urge anyone testing to try with a GPX track which has elevation data - the rainbow track backing is
quite nice I think... I hope others like it.

As a side note; I found out how to get the exception log - I have to setup an email account on my emulator
to get it to work.
2016-03-31 20:04:00 +11:00
Ajeje Brazorf
f1c6ca9698 Translated using Weblate (Sardinian)
Currently translated at 100.0% (1953 of 1953 strings)
2016-03-31 04:14:42 +02:00
Victor Shcherb
fcd598d134 Fix #2388 2016-03-30 20:44:30 +02:00
Andrew Davie
d99692e429 Rewrote the standard GPX track draw/clipping
It's a lot simpler - and a lot faster, I'm sure.  Basically it didn't need to be as complex as it was, and mostly
the 'hard stuff' it was solving is actually fairly easily handled by the draw. So. Seems to be working fine.
There are other little tweaks here and there as I test out the system.
The renderers need to behave under density and zoom changes; so that would be the widths of things should scale
properly, and the look of some of them leave a bit to be desired. However, it's the system that is now fully
functional, and work on the renderers can come later.  The main track draw seems pretty solid.
2016-03-31 03:16:59 +11:00
GaidamakUA
ebe9acfbbe Tiny refactoring. 2016-03-30 19:01:22 +03:00
GaidamakUA
a7a0db4fcd Fixes #2366. Now expanded state of favourite groups is preserved. 2016-03-30 18:32:37 +03:00
Alexey Kulish
eb6e9efa4b Remove thread, add sync 2016-03-30 18:04:03 +03:00
Alexey Kulish
1452f77488 Clean code 2016-03-30 17:41:08 +03:00
Alexey Kulish
942baec9f6 Fix lock ui and crash while calc route 2016-03-30 17:25:30 +03:00
GaidamakUA
aec531c381 Fixed resources in dark theme. 2016-03-30 15:17:34 +03:00
Weblate
75d874136a Merge remote-tracking branch 'origin/master' 2016-03-30 13:27:02 +02:00
Piotr Sokół
27b2e7f88a Translated using Weblate (Polish)
Currently translated at 100.0% (1953 of 1953 strings)
2016-03-30 13:26:55 +02:00
jan madsen
b2f53e655b Translated using Weblate (Danish)
Currently translated at 100.0% (1953 of 1953 strings)
2016-03-30 13:26:50 +02:00
Dmitriy Prodchenko
2b50c0ee1f Fix Right Turn arrow height. 2016-03-30 14:26:05 +03:00
Andrew Davie
8e7026c537 mid-work backup 2016-03-30 22:25:52 +11:00
GaidamakUA
ae0b798b28 Fix sized 2016-03-30 12:33:21 +03:00
GaidamakUA
7d4b4f4c48 Change color for configure screen. 2016-03-30 11:53:34 +03:00
GaidamakUA
5d335f5dab Renaming methods. 2016-03-30 11:36:48 +03:00
GaidamakUA
4b695ba06c Fixed introduced crash. 2016-03-30 11:30:47 +03:00
GaidamakUA
7c4161cf1b Fixed icon ignoring tint. 2016-03-30 11:22:17 +03:00
GaidamakUA
7202f69bd9 Refactoring. Removed getImage from contextMenuAdapter. 2016-03-30 11:12:34 +03:00
GaidamakUA
64735bd505 Refactoring. Menu items now has color. 2016-03-30 11:00:30 +03:00
Andrew Davie
64d481e47d Fixed a bug in the rainbow/altitude & speed renderer
Fixed the '1st pass' flag check for the draw loop. Previously was trying to draw at negative infinity
  - this *may* have been the reason this routine appeared to occaionally crash the emulator
Modified the draw so it only draws lines which are partially or completely on-screen
This routine is now optimal as far as minimising draw goes
  - first cull based on limits of entire track
  - second cull on per-segment basis based on screen visibility
2016-03-30 16:09:47 +11:00
Andrew Davie
5d4ab73620 Edge cases handled gracefully for low point-count arrays
Sitations with low point-counts may have been problematic. Now, 0, 1 and 2 point arrays are explicitly handled.
Added a copy constructor to WptPt to allow copies to be made, rather than returning original array.
Cases where no data is returned always returns a zero-sized array rather than a null array.
2016-03-30 15:14:24 +11:00
y.ridkous@gmail.com
7fea3ee5ce Update LanesDrawable 2016-03-29 21:37:43 +03:00
Andrew Davie
7b4daba1eb Optimisation for zooming/resampling to improve visuals
Just occurred to me that when zooming out (away) then the culled line we have is suitable for display. Previously when
zooming in or out, the culled line was discarded and the original line was drawn. That was to prevent you seeing really
low-resolution stuff while you wait for the asynchroous line cull to finish (can be in the order of several seconds).
However, with this modification, that is now only done when you are zooming in. This improves dramatically the "busy"
look when too much stuff is drawn for the given resolution.  Anyway, simple fix but great effect.  :P
2016-03-30 03:12:53 +11:00
Alexey Kulish
b431724a1a Fix location permission crash (NavigationService) 2016-03-29 18:48:56 +03:00
Andrew Davie
1fedd78e23 Removed all the renderers, except for the plain-vanilla one.
This gives a simple GPX track that is drawn with asynchronous point reduction to improve the speed of display.
Also, the simple region-based culling gets rid of entire tracks from the draw pipeline for further sppedups.
2016-03-30 02:15:26 +11:00
Andrew Davie
63ff22b6ab "Trivial" area bounds for segments for super-quick culling during draw.
Reworked all the renderers to be much more object oriented.
Got the sample arrow and conveyor renderers working
Tracked down a few bugs - particularly one still there - TrkSegment with 0 points!
This in my opinion should never happen - it's coming in from "outside" to my code.
2016-03-30 01:47:04 +11:00
sonora
5fa6036c3e Fix wrong string assignment 2016-03-29 16:42:17 +02:00
Dmitriy Prodchenko
cc241f7251 New icons for Configure Map screen. 2016-03-29 17:23:33 +03:00
GaidamakUA
60073c4ff3 Rewritten working ContextMenu. GpxUiHelper, ConfigureMapMenu. 2016-03-29 16:59:03 +03:00
GaidamakUA
c124ddf21b Rewritten working ContextMenu. Need to be removed completely. Little fixes for AvailableIndexesFragment. 2016-03-29 16:29:45 +03:00
GaidamakUA
bd3ca97411 Rewritten working ContextMenu. Need to be removed completely. Little fixes for AvailableGPXFragment. 2016-03-29 15:57:56 +03:00
GaidamakUA
f04df5b622 Remove unnecessary field. 2016-03-29 15:57:56 +03:00
Weblate
acb853a619 Merge remote-tracking branch 'origin/master' 2016-03-29 14:07:42 +02:00
Roberto GEB
4d4b05b810 Translated using Weblate (Spanish)
Currently translated at 99.6% (2461 of 2469 strings)
2016-03-29 14:07:42 +02:00
GaidamakUA
39f48e30a6 Configure screen: Menus are working. 2016-03-29 15:07:22 +03:00
GaidamakUA
5fdcc6b341 Refactoring 2016-03-29 15:07:22 +03:00
Roberto GEB
ff6558ed90 Translated using Weblate (Spanish)
Currently translated at 99.6% (2461 of 2469 strings)
2016-03-28 21:00:27 +02:00
8c6311e901274f6baef2068792c8ab
14a5153b09 Translated using Weblate (Norwegian Bokmål)
Currently translated at 73.4% (1435 of 1954 strings)
2016-03-28 21:00:19 +02:00
Andrew Davie
c8a245d031 Honoured isCancelled() for the async renderer, and return correct status
This should speed up things a bit by killing background tasks earlier
2016-03-29 04:57:52 +11:00
Andrew Davie
93587fe210 Very clean OO-type classes for the renderers and asynchronous resamplers. 2016-03-29 03:58:16 +11:00
Victor Shcherb
a580d65604 Fix compilation 2016-03-28 15:44:54 +02:00
Victor Shcherb
f8c459146b Fix compilation 2016-03-28 15:42:44 +02:00
Victor Shcherb
0f86f53b5e Fix turn lanes 2016-03-28 15:10:47 +02:00
Victor Shcherb
d8a2b60436 Add map icons 2016-03-28 14:54:31 +02:00
Weblate
7a29807aea Merge remote-tracking branch 'origin/master' 2016-03-28 14:53:44 +02:00
Ldm Public
d590250dd0 Translated using Weblate (French)
Currently translated at 99.8% (1952 of 1954 strings)
2016-03-28 14:53:33 +02:00
vshcherb
900d56d1ed Merge pull request #2375 from yurkiss/test_turn_lanes_1
Update LanesDrawable
2016-03-28 14:53:26 +02:00