Commit Graph

737 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
2425cf4ef8 Revert "[android] Do not create Timers on Default main loops"
This reverts commit 13cd75f099.
2016-07-06 17:43:09 +03:00
Tobrun Van Nuland
99a4850613 [android] #5000 - initial surface view implementation. 2016-07-06 11:01:37 +02:00
Thiago Marcos P. Santos
dfd0b105cd [android] Fix issue when stop is called before run on the RunLoop
The current ::stop() implementation was not thread safe and we
should queue the ::stop() for the next loop iteration so even
if we call ::stop() before ::run(), it gets processed.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
13cd75f099 [android] Do not create Timers on Default main loops
Not supported, because we don't have control over the Looper
timeout like we do for Loopers we create. On the main thread,
Android takes care of making the application sleep and sets
an arbitrary timeout. This could be properly fixed by implementing
timers in Java, but we don't really have the use case of timers
in the main thread.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
b3b86f9be4 [android] Fix hang when calling Timer::start() twice
Calling start() from the callback was making the timer
effectively stop.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
e579199ac1 [android] Fix a bug when canceling tasks
If the next task in the queue gets canceled, we need to
adjust the iterator to the next task, otherwise a canceled
task gets executed.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
70d4ebb347 [android] Fix default RunLoop not stopping
stop() for default RunLoop is only used by unit tests and we need
to wake the ALooper to get past run().
2016-07-05 21:04:27 +03:00
Tobrun
2bf4e20052 [android] #5104 - make nativePixelForLatLng faster (74ms to 57ms)
[android] #5104 - make nativeLatLngForPix faster (52ms - 45ms).

[andriod] #5104 - make nativeSetLatLng faster (117ms to 105ms)

[android] #5104 - make nativeFlyTo faster (106ms to 97ms)

[android] #5104 - make nativeEaseTo faster (103 to 94ms)

[android] #5104 - make nativeJumpTo faster (94 to 86ms)

[android] #5104 - make nativeProjectedMetersForLatLng faster (32 to 30ms)

[android] #5104 - make nativeLatLngForProjectedMeters faster (32 to 30ms)
2016-07-05 15:43:19 +02:00
Tobrun
a40953dd71 [android] - Remove StyleInitializer class, obsolete with introduction MapboxAccountManager 2016-07-05 13:34:22 +02:00
Tobrun
6b0c16a148 [android] #5564 - fixes latitude lint range setup for getMetersPerPixelAtLatitude 2016-07-05 10:49:47 +02:00
Tobrun
87209bd04f [android] - add javadoc to mapboxmapoptions 2016-07-05 10:07:08 +02:00
Tobrun
ced4ad63f7 [android] - fixes deprecation javadoc of accessToken 2016-07-05 09:09:31 +02:00
Konstantin Käfer
eb7cfea7ea [android] upgrade to NDK r12b 2016-07-01 18:26:55 +02:00
Cameron
a440598e2b [android] updated the testapp icon 2016-06-30 15:03:21 -05:00
John Firebaugh
03f30f5207 Merge remote-tracking branch 'origin/release-android-v4.1.0' 2016-06-29 17:07:15 -07:00
Brad Leege
dfbee38f53 [android] #5510 - Setting version to 4.2.0-SNAPSHOT 2016-06-29 12:23:51 -05:00
Brad Leege
a8cd7ecdfb [android] #5510 - Updating CHANGELOG for Android 4.1.0 Release 2016-06-29 12:20:25 -05:00
Brad Leege
ee4cb08e4f [android] #5510 - Fixing POM Name 2016-06-29 10:50:55 -05:00
Brad Leege
799dc9bd93 [android] #5510 - Setting properties to 4.1.0 for Release 2016-06-29 10:39:07 -05:00
Brad Leege
e2499207a7 [android] #4700 - Removing Deprecated annotation on MapboxMap.OnMyLocationChangeListener 2016-06-28 11:56:19 -05:00
Brad Leege
5cc174c0f5 [android] #5470 - Adding NaN and Infinite checks to location event tracking 2016-06-27 13:46:43 -05:00
Tobrun
3456e086ac [android] Fixes disappearing markers when crossing dateline, remove debug exception catch.
Fixes #5402
2016-06-27 10:18:38 -04:00
Tobrun
0d17bb1cc8 [android] #5479 - don't invalidate MapView when we are animating MyLocationView with an ObjectAnimator. 2016-06-25 10:03:04 +02:00
Tobrun
871f82dceb [android] #5479 - Don't disable rotate gesture if we have tracking disabled 2016-06-25 10:00:18 +02:00
Tobrun
76f9c1ac02 [android] #5479 - apply preRotate instead of postRotate for a correct transformation 2016-06-25 09:57:20 +02:00
John Firebaugh
3ccda59099 [android] Fix crash adding line or polygon annotation 2016-06-24 12:21:44 -07:00
Tobrun Van Nuland
64da7fa684 [android] Addresses marker view flat bug
Fixes #5427
2016-06-24 09:14:58 -04:00
Tobrun Van Nuland
b37de9f8f4 [android] - Fix locational runtime permissions
Fixes #5450
2016-06-24 08:56:11 -04:00
Tobrun Van Nuland
cff1a8929f [android] Make markers View.GONE when being added for the first time to the map
Fixes #5439
2016-06-23 12:13:36 -04:00
Tobrun Van Nuland
6b1a753fd4 [android] Recalculate offset with new anchor
Fixes #5421
2016-06-23 12:00:47 -04:00
Stephen Niedzielski
4c87da6b8f Allow Mapbox to be served to devices without Wi-Fi
android.permission.ACCESS_WIFI_STATE implies an android.hardware.wifi
requirement. Make Wi-Fi optional.
2016-06-23 08:08:13 +02:00
Jesse Bounds
5832f63acc [android] Cancel other gestures during shove.
This adds a guard so that when a shove gesture is occurring, no other
gestures take place. This helps avoid the disorienting feeling of
having the map move left and right and rotate while trying to tilt it
and looks more like Google maps.
2016-06-22 21:54:44 +02:00
Antonio Zugaldia
fa54b7dd06 [android] #5415 - add 4.1.0-beta.3 to CHANGELOG.md 2016-06-20 16:12:45 -04:00
Antonio Zugaldia
1e2d567942 [android] #5415 - fix fabric version name 2016-06-20 16:11:11 -04:00
Antonio Zugaldia
b1aecc2faf [android] Rename Custom Dynamic InfoWindow Adapter in testapp
Fixes #5398
2016-06-20 13:43:21 -04:00
Antonio Zugaldia
7fb5c097bf [android] Add scaling marker activity to TestApp using the View Marker API
Fixes #5409
2016-06-20 13:17:08 -04:00
Bruno de Oliveira Abinader
22aa22c99c [core] UnitBezier ctor is now constexpr 2016-06-20 13:01:59 +03:00
Antonio Zugaldia
b2ce41375c [android] Remove unnecessary menu from Animated Marker activity
Fixes #5396
2016-06-17 15:39:49 -04:00
Ivo van Dongen
a2dbec82dd [android] Fix info window placement on programatic marker select
Fixes #5348
2016-06-17 19:55:10 +02:00
Brad Leege
2591147e25 [android] Setting up LocationPickerActivity infrastructure
Fixes #5282
2016-06-17 19:54:27 +02:00
Tobrun
ebbe90983f [android] #5299 - add rotation to cars, add cars images 2016-06-17 17:00:57 +02:00
Tobrun
8c83af7b97 [android] #5299 - remove MarkerView x,y animation 2016-06-17 16:06:37 +02:00
Ivo van Dongen
8e9b158e73 [android] #5299 - Added more cars to the animation example to see what impact it has 2016-06-17 16:06:37 +02:00
Ivo van Dongen
fa0e3df981 [android] #5299 - Simplify animation code a bit. Make duration dependent on distance. Use non-linear interpolator. 2016-06-17 16:06:37 +02:00
Antonio Zugaldia
27da49c5fb first approach to a marker continuosly chasing another 2016-06-17 16:06:37 +02:00
Tobrun
2f8fd61ac7 [android #4700 - remove deprecation MyLocationListener 2016-06-17 13:08:32 +02:00
Justas Medeisis
ce2ccf9c3f [android] #5335 - Invalidate MyLocationView during bearing indicator animation. 2016-06-17 12:00:32 +02:00
Justas Medeisis
f470208f6e [android] #5335 - Always record latest accelerometer and magnetometer sensor values regardless of MyLocationView update throttling. 2016-06-17 12:00:32 +02:00
Minh Nguyễn
2893f39249 [android] Rename OS X SDK to macOS SDK in Android 4.1 release branch
Fixes #5382

Also renamed as many references to OS X as possible to macOS in documentation.
2016-06-16 16:15:45 -04:00
Justas Medeisis
a5476346bf [android] Fix crash when MyBearingTracking mode is not NONE.
Fixes #5331
2016-06-16 15:43:31 -04:00