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

Commit 4870ad40 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Unbind screenshot connection even if the binding attempt fails

Bug: 273563486
Test: manual, by forcing the bindServiceAsUser method to return false
for screenshots after connecting. we do get spurious logs in that case
before the fix, but not after.

Change-Id: Ic729a3aad9dc7f7a6c396746c6c8ae706384fb5f
parent 9d177c71
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -195,6 +195,8 @@ public class ScreenshotHelper {
                        UserHandle.CURRENT)) {
                    mScreenshotConnection = conn;
                    handler.postDelayed(mScreenshotTimeout, timeoutMs);
                } else {
                    mContext.unbindService(conn);
                }
            } else {
                Messenger messenger = new Messenger(mScreenshotService);