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

Commit 2be49604 authored by Miranda Kephart's avatar Miranda Kephart Committed by Automerger Merge Worker
Browse files

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

Change-Id: I4f5eefd73aec60b2f4606e7bb18916d56384ebc6
parents 880974eb a4b94746
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;
                                }