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

Commit 486f2374 authored by Automerger Merge Worker's avatar Automerger Merge Worker
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 am: 3bc82e0f

Change-Id: Ibc6ce20b46b999541d04cb04ce359ec846ceec72
parents 9a027a33 3bc82e0f
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;
                                }