diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-08-26 13:25:32 +0200 |
---|---|---|
committer | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-08-26 13:25:32 +0200 |
commit | 2f06760a7f0162b0e02feca393a30d63c8a41bb5 (patch) | |
tree | cfed8b5fced29e6e658060fd281b405c035a8041 | |
parent | 5db1c180968ecc09f918c0a6038f00395d11feb5 (diff) | |
download | qtlocation-mapboxgl-upstream/lp-camera-position-activity-init.tar.gz |
[android] initialize CameraPositionActivity listeners after the style is loadedupstream/lp-camera-position-activity-init
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/camera/CameraPositionActivity.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/camera/CameraPositionActivity.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/camera/CameraPositionActivity.java index 83b0c415ec..6979097658 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/camera/CameraPositionActivity.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/camera/CameraPositionActivity.java @@ -63,12 +63,12 @@ public class CameraPositionActivity extends FragmentActivity implements OnMapRea fab = findViewById(R.id.fab); fab.setColorFilter(ContextCompat.getColor(CameraPositionActivity.this, R.color.primary)); fab.setOnClickListener(this); - }); - toggleLogCameraChanges(); + toggleLogCameraChanges(); - // listen to long click events to toggle logging camera changes - mapboxMap.addOnMapLongClickListener(this); + // listen to long click events to toggle logging camera changes + mapboxMap.addOnMapLongClickListener(this); + }); } @Override |