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

Commit 64981a81 authored by Jack Yu's avatar Jack Yu Committed by Gerrit Code Review
Browse files

Merge "Fixed that binding service twice issue"

parents a75f3ada 31abc099
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -245,13 +245,13 @@ public class AccessNetworksManager extends Handler {
            return;
        }

        if (mIQualifiedNetworksService != null
                && mIQualifiedNetworksService.asBinder().isBinderAlive()) {
            if (packageName.equals(mTargetBindingPackageName)) {
        if (TextUtils.equals(packageName, mTargetBindingPackageName)) {
            if (DBG) log("Service " + packageName + " already bound or being bound.");
            return;
        }

        if (mIQualifiedNetworksService != null
                && mIQualifiedNetworksService.asBinder().isBinderAlive()) {
            // Remove the network availability updater and then unbind the service.
            try {
                mIQualifiedNetworksService.removeNetworkAvailabilityUpdater(mPhone.getPhoneId());