Commit graph

29997 commits

Author SHA1 Message Date
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
Victor Shcherb
170ce67fcd Update test 2016-03-30 16:03:06 +02:00
Victor Shcherb
6a9b0cef37 Update test results 2016-03-30 15:42:20 +02:00
Victor Shcherb
18141d065e Ignore failure 2016-03-30 15:29:56 +02:00
Victor Shcherb
b075716096 Update tests 2016-03-30 15:08:50 +02:00
Victor Shcherb
46a8ce682e Update tests 2016-03-30 15:08:32 +02:00
Victor Shcherb
2941e14932 Update junit tests 2016-03-30 14:57:27 +02:00
Victor Shcherb
0dc76234f2 Add 3rd turn 2016-03-30 14:45:35 +02: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
vshcherb
e3dabb1ada Merge pull request #2384 from yurkiss/test_turn_lanes_1
U-turn image fix
2016-03-29 20:42:25 +02:00
y.ridkous@gmail.com
7fea3ee5ce Update LanesDrawable 2016-03-29 21:37:43 +03:00
Yuriy Ridkous
09e33431f4 Merge pull request #6 from osmandapp/master
update
2016-03-29 21:30:32 +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