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

Commit 2b3940f8 authored by Fynn Godau's avatar Fynn Godau
Browse files

Merge branch 'epic67-maps' into 913-circles

parents 9e4de6b3 f54d5cfb
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -563,8 +563,17 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
    }

    override fun snapshot(callback: ISnapshotReadyCallback, bitmap: IObjectWrapper?) {
        Log.d(TAG, "unimplemented Method: snapshot")

        val map = map
        if (map == null) {
            // Snapshot cannot be taken
            runOnMainLooper { callback.onBitmapWrappedReady(ObjectWrapper.wrap(null)) }
        } else {
            map.snapshot {
                runOnMainLooper {
                    callback.onBitmapWrappedReady(ObjectWrapper.wrap(it))
                }
            }
        }
    }

    override fun setPadding(left: Int, top: Int, right: Int, bottom: Int) = afterInitialize { map ->
+1 −1

File changed.

Contains only whitespace changes.