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

Commit 54c1a919 authored by Bryce Lee's avatar Bryce Lee Committed by Automerger Merge Worker
Browse files

Merge "Make bitmap nullable in ViewCapture" into tm-qpr-dev am: 2dff081f

parents 68099d35 2dff081f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -93,8 +93,8 @@ fun View.toBitmap(window: Window? = null): Bitmap {
            Futures.addCallback(
                captureToBitmap(window),
                object : FutureCallback<Bitmap> {
                    override fun onSuccess(result: Bitmap) {
                        continuation.resumeWith(Result.success(result))
                    override fun onSuccess(result: Bitmap?) {
                        continuation.resumeWith(Result.success(result!!))
                    }

                    override fun onFailure(t: Throwable) {