Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 074fb360 authored by Fynn Godau's avatar Fynn Godau
Browse files

Apply review

parent 74bff5ec
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -172,6 +172,7 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)

    override fun getCameraPosition(): CameraPosition =
        map?.cameraPosition?.toGms() ?: CameraPosition(LatLng(0.0, 0.0), 0f, 0f, 0f)

    override fun getMaxZoomLevel(): Float = (map?.maxZoomLevel?.toFloat() ?: 20f) + 1f
    override fun getMinZoomLevel(): Float = (map?.minZoomLevel?.toFloat() ?: 0f) + 1f

@@ -200,7 +201,6 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
    fun afterInitialize(runnable: (MapboxMap) -> Unit) {
        synchronized(mapLock) {
            if (initialized) {
                assert(map != null)
                runnable(map!!)
            } else {
                initializedCallbackList.add(OnMapReadyCallback {
+1 −2
Original line number Diff line number Diff line
@@ -162,8 +162,7 @@ class UiSettingsCache : AbstractUiSettings() {
        isTiltGesturesEnabled = gestures
        isZoomGesturesEnabled = gestures

        //setDoubleTapGesturesEnabled(gestures)
        //setQuickZoomGesturesEnabled(gestures)
        // Other gestures toggles double tap and quick zoom gestures
        otherGestures = gestures
    }