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

Commit d6a05861 authored by Fynn Godau's avatar Fynn Godau
Browse files

Log snapshots

parent 71452df4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -456,10 +456,13 @@ class GoogleMapImpl(context: Context, var options: GoogleMapOptions) : AbstractG
        val map = map
        if (map == null) {
            // Snapshot cannot be taken
            Log.e(TAG, "snapshot could not be taken because map is null")
            runOnMainLooper { callback.onBitmapWrappedReady(ObjectWrapper.wrap(null)) }
        } else {
            Log.d(TAG, "taking snapshot")
            map.snapshot {
                runOnMainLooper {
                    Log.d(TAG, "snapshot ready, providing to application")
                    callback.onBitmapWrappedReady(ObjectWrapper.wrap(it))
                }
            }