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

Commit c90986d0 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Remove unnecessary advertiser count check" am: ab1a85f4 am: 0f425f0d

am: 1a00d7a4

Change-Id: Ie91a259cfee5ee6e6302e4e1568e1f1f91a75cd2
parents c379c791 1a00d7a4
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -201,11 +201,6 @@ class AdvertiseManager {
                return;
            }

            if (mAdvertiseClients.size() >= maxAdvertiseInstances()) {
                postCallback(advertiserId,
                        AdvertiseCallback.ADVERTISE_FAILED_TOO_MANY_ADVERTISERS);
                return;
            }
            if (!mAdvertiseNative.startAdverising(client)) {
                postCallback(advertiserId, AdvertiseCallback.ADVERTISE_FAILED_INTERNAL_ERROR);
                return;
@@ -230,11 +225,6 @@ class AdvertiseManager {
                mAdvertiseClients.remove(client);
            }
        }

        // Returns maximum advertise instances supported by controller.
        int maxAdvertiseInstances() {
            return mAdapterService.getNumOfAdvertisementInstancesSupported();
        }
    }

    // Class that wraps advertise native related constants, methods etc.