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

Commit 8ab1625e 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 am: 022a8216

Change-Id: I8f8d5dc4d9955101b975765ddd7dddd28b9edf94
parents 0f8b1852 022a8216
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -132,6 +132,7 @@ public class ScreenshotHelper {
                    }
                    }
                };
                };
    }
    }

    private static final String TAG = "ScreenshotHelper";
    private static final String TAG = "ScreenshotHelper";


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




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