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

Commit 6874cd56 authored by Sumedh Sen's avatar Sumedh Sen
Browse files

Ignore exception if already unbound from service

Bug: 298304011
Test: Presubmit
Change-Id: I12e4923546596e43b4a45de652bc4974c3f91519
parent f91b30cd
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -212,7 +212,12 @@ final class InstantAppResolverConnection implements DeathRecipient {
                if (DEBUG_INSTANT) {
                if (DEBUG_INSTANT) {
                    Slog.i(TAG, "[" + token + "] Previous connection never established; rebinding");
                    Slog.i(TAG, "[" + token + "] Previous connection never established; rebinding");
                }
                }
                try {
                    mContext.unbindService(mServiceConnection);
                    mContext.unbindService(mServiceConnection);
                } catch (Exception e) {
                    Slog.e(TAG, "[" + token + "] Service already unbound", e);
                }

            }
            }
            if (DEBUG_INSTANT) {
            if (DEBUG_INSTANT) {
                Slog.v(TAG, "[" + token + "] Binding to instant app resolver");
                Slog.v(TAG, "[" + token + "] Binding to instant app resolver");