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

Commit 6a62de07 authored by Sungsoo Lim's avatar Sungsoo Lim Committed by android-build-merger
Browse files

Merge "Catch IllegalArgumentException when disconnect" into oc-mr1-dev am: 1d66ccde

am: f6791675

Change-Id: I33c1d2cbccb2e2944bba49d8b7d6b5117816870a
parents eb316703 f6791675
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -256,7 +256,13 @@ public final class MediaBrowser {
     */
    private void forceCloseConnection() {
        if (mServiceConnection != null) {
            try {
                mContext.unbindService(mServiceConnection);
            } catch (IllegalArgumentException e) {
                if (DBG) {
                    Log.d(TAG, "unbindService failed", e);
                }
            }
        }
        mState = CONNECT_STATE_DISCONNECTED;
        mServiceConnection = null;