Commit Graph

1741 Commits

Author SHA1 Message Date
tobrun
073a243862 [android] provide default font list for pre lollipop 2019-08-20 11:36:12 +03:00
Łukasz Paczos
1846c0582d [android] synchronize TextureView EGL context creation 2019-08-19 13:32:20 +02:00
Łukasz Paczos
8e1bd18eae [android] execute quickzoom scale change based on the Y axis delta change
Using finger's Y axis position allows for a linear zoom additions/deductions during the quick-zoom changes. This is in contrast to the previously used scale factor, which is based on the current span (distance from the origin) to previous span ratio and increases the closer the finger is to the origin of a gesture because the values are smaller.

The scale ratio based changes are also reliant on series of motion events' values and because the Android framework can skip some events, going back and forth during a quick-zoom might not have resulted in the same transformation. This was reproduced by the round-tripping test introduced in this commit.
2019-08-15 20:34:29 +03:00
Łukasz Paczos
eab3fbf5bf [android] bring back scale delta span threshold when rotation is started first 2019-08-15 18:08:29 +03:00
Łukasz Paczos
acc6079b08 [android] improve rotation inertia, adjust velocity ratios for screen density 2019-08-15 18:08:29 +03:00
Łukasz Paczos
3e73e4d49f [android] improve scale + rotation behavior 2019-08-15 18:08:29 +03:00
Łukasz Paczos
18971395d6 [android] improve scale inertia 2019-08-15 18:08:29 +03:00
Alexander Shalamov
dad43ba8fc [android] Android bindings for new 'text-writing-mode' layout property 2019-08-13 13:32:56 +03:00
tobrun
58d7734722 [android] add fallback support to local ideograph font families, allow setting a collection of fonts 2019-08-12 14:30:07 +03:00
tobrun
9cf1746e35 [android] - load style without url or json 2019-08-01 17:40:48 +03:00
Łukasz Paczos
300f0b5980 [android] do not reinitialize camera/render mode if it hasn't changed
Camera/Render mode updates can be streamed from various different stateless sources and we should make sure to skip an update to a mode that's already set. This keeps the callbacks tidy and does not perform unnecessary work.
2019-07-31 18:17:16 +03:00
Łukasz Paczos
275d8ffb2b [android] save location animation timestamp only when fed
When all location layer animations were reset, due to the mode change, we were recalculating the time of the animation, while we should be taking the remaining duration. Frequent recalculation requests resulted in a really short animation duration.
2019-07-31 13:06:55 +03:00
Łukasz Paczos
703c76ada2 [android] package ideographs flag in the offline definition parcel 2019-07-31 12:12:22 +03:00
Łukasz Paczos
45e5e6341e [android] do not include CJK ideographs in the offline packs by default 2019-07-31 12:12:22 +03:00
Łukasz Paczos
f86f0226dd [android] ensure default local ideographs font family is not overwrote 2019-07-30 13:53:03 +02:00
Łukasz Paczos
433d3fb298 [android] align gesture animation reason 2019-07-25 13:48:36 +02:00
Łukasz Paczos
dabf5d0c3a [android] remove layers first when clearing the style 2019-07-22 16:03:53 +02:00
Tobrun
79bdce6cd4 [android] - update dependencies, target SDK, support library (#15135) 2019-07-19 11:46:38 +02:00
Tobrun
de667d2fe5 Merge pull request #15170 from mapbox/tvn-snapshot
Update snapshot version for the q release
2019-07-19 10:51:02 +02:00
Heather Stenson
fd99a6e570 [docs] Remove references to increasing offline tile limit 2019-07-18 16:27:31 -07:00
Łukasz Paczos
ac0431eac5 [android] ensure that move detector is enabled if double-tap is interrupted 2019-07-11 18:18:48 +02:00
Łukasz Paczos
11cd2220a1 [android] fix up "match" expressions docs with stop arguments 2019-07-11 15:43:03 +02:00
Łukasz Paczos
0b0d7b844a [android] allow map panning after quick zoom is disabled but a phantom gesture is executed 2019-07-11 14:14:10 +02:00
Łukasz Paczos
afa7cea4c0 [android] ensure location shadow's gradient is greater than 0 2019-07-11 13:27:13 +02:00
Łukasz Paczos
5b02434e88 [android] remove access token's nullability annotations to not impact Kotlin interop 2019-07-11 12:59:05 +02:00
Łukasz Paczos
4348169aac [android] allow setting a null access token in the runtime 2019-07-11 11:02:24 +02:00
Łukasz Paczos
348c437c0a [android] throw configuration exception when accessing Mapbox services with an invalid token 2019-07-11 11:02:24 +02:00
tobrun
ee0d831a2f [android] - introduce MapboxMapOptins facility creation method. 2019-07-08 16:33:26 +02:00
tobrun
dd16eadc38 [android] - add ktlint, optimise code for ktlint validation 2019-07-04 12:08:49 +02:00
tobrun
21f7522967 [android] - add binding integration for cache management API 2019-07-02 14:23:24 +02:00
tobrun
c5b04677f0 [android] - add setVerbosity to Logger, add LogLevel IntDef 2019-06-25 14:39:14 +02:00
Łukasz Paczos
41980af469 [android] refactor LocationComponentTest to use consistent mocking tools 2019-06-24 11:37:21 +02:00
Łukasz Paczos
fe570fb206 [android] reset location layer animators when render mode changes 2019-06-24 11:37:21 +02:00
Tobrun
24b7b413b5 [android] - limit concurrent request for Android 4.4 and below to 10 (#14971) 2019-06-20 17:34:39 +02:00
Łukasz Paczos
577e03f949 [android] ensure to re-enable move when quickzoom finishes
Because the double tap event can be canceled and stop delivering events whenever ACTION_CANCEL or ACTION_POINTER_DOWN is dispatched, we need to make the #onScaleEnd callback responsible for re-enabling the move detector as well
2019-06-20 10:28:02 +02:00
Tobrun
18885def71 [android] - optimise CameraUpdateFactory#newLatLngBounds to use camera position tilt and bearing values (#14953) 2019-06-19 19:51:44 +02:00
Łukasz Paczos
8ed0d53875 [android] bump SNAPSHOT version to 8.2.0 2019-06-18 15:42:36 +02:00
Łukasz Paczos
55527d0412 [android] accept floating numbers during core->platform color conversion 2019-06-18 13:22:44 +02:00
Tobrun
c2fb3cc76f [android] - add resource usage to HttpRequest, add offline query parameter flag to http request (#14837) 2019-06-12 16:40:59 +02:00
Tobrun
e3d87ed826 Merge pull request #14898 from mapbox/tvn-allow-null-updates
Allow null updates to GeoJsonSource#setGeoJson
2019-06-11 19:14:21 +02:00
tobrun
685a9e5e94 [android] - change library loader to soloader 2019-06-11 18:22:45 +02:00
tobrun
df062afe6d [android] - fix reset behavior for setLatLngBoundsForCameraTarget 2019-06-11 10:10:51 +02:00
tobrun
36361192b1 [android] - rename style component URL api to URI 2019-06-05 09:38:20 +02:00
Łukasz Paczos
7b5d6c15ac [android] copy features array before passing them to core 2019-06-04 17:49:08 +02:00
tobrun
fd33e066a4 [android] - add external links to javadoc generation, fix warnings and errors, add package-info to loader module package 2019-06-04 16:59:56 +02:00
Łukasz Paczos
409ead63da [android] reset the native renderer only when the GL thread exits 2019-06-04 15:47:39 +02:00
Pablo Guardiola
0181ef8f63 [android] add support for external sdk clients to be able to manage the tokens on their side (#14631) 2019-05-30 11:24:24 -04:00
tobrun
05e194614f [android] - consolidate native build setup into one gradle configuration file 2019-05-29 11:51:39 +02:00
tobrun
ff980010d7 [android] - move example custom layer compilation to testapp 2019-05-29 11:51:39 +02:00
Łukasz Paczos
5bb0a49dc9 [android] option to change the zoom rate 2019-05-29 10:16:01 +02:00