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

Commit 3bc82e0f authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Fix NPE in ScreenshotHelper" into rvc-dev am: a4b94746 am:...

Merge "Merge "Fix NPE in ScreenshotHelper" into rvc-dev am: a4b94746 am: 022a8216" into rvc-d1-dev-plus-aosp
parents 0977bdb8 1e7448a0
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -132,6 +132,7 @@ public class ScreenshotHelper {
                    }
                };
    }

    private static final String TAG = "ScreenshotHelper";

    // Time until we give up on the screenshot & show an error instead.
@@ -146,8 +147,6 @@ public class ScreenshotHelper {
        mContext = context;
    }



    /**
     * Request a screenshot be taken.
     *
@@ -284,8 +283,8 @@ public class ScreenshotHelper {
                            break;
                        case SCREENSHOT_MSG_PROCESS_COMPLETE:
                            synchronized (mScreenshotLock) {
                                if (mScreenshotConnection == myConn) {
                                    mContext.unbindService(mScreenshotConnection);
                                if (myConn != null && mScreenshotConnection == myConn) {
                                    mContext.unbindService(myConn);
                                    mScreenshotConnection = null;
                                    mScreenshotService = null;
                                }