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

Commit e4ab71f4 authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Merge "Fixed that binding service twice issue"

am: 64981a81

Change-Id: I64e82375bbf1a30ea66e34f92b1b4da821a29412
parents b9f97225 64981a81
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());