diff options
author | kevin <kevin.li@mapbox.com> | 2019-01-11 15:08:53 -0800 |
---|---|---|
committer | kevin <kevin.li@mapbox.com> | 2019-01-11 15:10:15 -0800 |
commit | 79a0032783168785294697dec8962f37ddd47151 (patch) | |
tree | 58313f6ddf0f3eac70d5d12ee66a97a24fc7f76c | |
parent | 4db55c3ace71fcc07c3ba4de99d411bf59d46397 (diff) | |
download | qtlocation-mapboxgl-upstream/show_fps.tar.gz |
[android] fix debug activity not show fpsupstream/show_fps
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java index 796560bb8b..0add72ec2d 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java @@ -24,11 +24,11 @@ import com.mapbox.mapboxsdk.maps.Style; import com.mapbox.mapboxsdk.style.layers.Layer; import com.mapbox.mapboxsdk.style.layers.Property; import com.mapbox.mapboxsdk.testapp.R; +import com.mapbox.mapboxsdk.testapp.utils.IdleZoomListener; import java.util.List; import java.util.Locale; -import com.mapbox.mapboxsdk.testapp.utils.IdleZoomListener; import timber.log.Timber; import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.visibility; @@ -85,7 +85,7 @@ public class DebugModeActivity extends AppCompatActivity implements OnMapReadyCa private void setupMapView(Bundle savedInstanceState) { MapboxMapOptions mapboxMapOptions = setupMapboxMapOptions(); mapView = new MapView(this, mapboxMapOptions); - ((ViewGroup) findViewById(R.id.coordinator_layout)).addView(mapView); + ((ViewGroup) findViewById(R.id.coordinator_layout)).addView(mapView, 0); mapView.addOnDidFinishLoadingStyleListener(() -> { if (mapboxMap != null) { setupNavigationView(mapboxMap.getStyle().getLayers()); |