From 2f06760a7f0162b0e02feca393a30d63c8a41bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Paczos?= Date: Mon, 26 Aug 2019 13:25:32 +0200 Subject: [android] initialize CameraPositionActivity listeners after the style is loaded --- .../mapboxsdk/testapp/activity/camera/CameraPositionActivity.java | 8 ++++---- 1 file 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 -- cgit v1.2.1