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

Commit dab9eff8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't crash onServiceDisconnected..." into oc-mr1-dev

parents 21740565 fcd7fae5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1585,8 +1585,8 @@ public class ChooserActivity extends ResolverActivity {
                } catch (RemoteException e) {
                    Log.e(TAG, "Querying ChooserTargetService " + name + " failed.", e);
                    mChooserActivity.unbindService(this);
                    destroy();
                    mChooserActivity.mServiceConnections.remove(this);
                    destroy();
                }
            }
        }
@@ -1602,7 +1602,6 @@ public class ChooserActivity extends ResolverActivity {
                }

                mChooserActivity.unbindService(this);
                destroy();
                mChooserActivity.mServiceConnections.remove(this);
                if (mChooserActivity.mServiceConnections.isEmpty()) {
                    mChooserActivity.mChooserHandler.removeMessages(
@@ -1610,6 +1609,7 @@ public class ChooserActivity extends ResolverActivity {
                    mChooserActivity.sendVoiceChoicesIfNeeded();
                }
                mConnectedComponent = null;
                destroy();
            }
        }