diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-01-28 18:32:31 +0100 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2019-01-30 16:13:23 +0100 |
commit | f897f128e601b25752f5f9de6ee0f15c14dda75c (patch) | |
tree | b49514aceb1036e7443d609c552138ad63d5f90b /platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com | |
parent | 953e6dca5b2135f2b56d91cd9564e62dcd938632 (diff) | |
download | qtlocation-mapboxgl-f897f128e601b25752f5f9de6ee0f15c14dda75c.tar.gz |
[android] LocationComponent animator throttling tests and examples
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/location/LocationModesActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/location/LocationModesActivity.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/location/LocationModesActivity.java index 808ed61927..11918669cb 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/location/LocationModesActivity.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/location/LocationModesActivity.java @@ -174,6 +174,10 @@ public class LocationModesActivity extends AppCompatActivity implements OnMapRea } else if (id == R.id.action_gestures_management_enabled) { enableGesturesManagement(); return true; + } else if (id == R.id.action_component_throttling_enabled) { + locationComponent.setMaxAnimationFps(5); + } else if (id == R.id.action_component_throttling_disabled) { + locationComponent.setMaxAnimationFps(Integer.MAX_VALUE); } return super.onOptionsItemSelected(item); |