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

Commit 90c23d2f authored by James Mattis's avatar James Mattis
Browse files

SoftApCallback using executor vs handler

Updating classes to support making SoftApCallback methods available to @SystemAPI including
the API for registration of a SoftApCallback which includes a change to
now use executor vs handler.

Bug: 143564153
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherPreferenceControllerTest
Also tested manually on a Pixel 3.

Change-Id: I952ad10dd88b7d97b3cd86b269b8f67b00b1fa15
Merged-In: I952ad10dd88b7d97b3cd86b269b8f67b00b1fa15
parent 2b7c8937
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ package com.android.settings.wifi.tether;
import android.net.wifi.WifiClient;
import android.net.wifi.WifiManager;
import android.os.Handler;
import android.os.HandlerExecutor;

import java.util.List;

@@ -35,7 +36,7 @@ public class WifiTetherSoftApManager {
    }

    public void registerSoftApCallback() {
        mWifiManager.registerSoftApCallback(mSoftApCallback, mHandler);
        mWifiManager.registerSoftApCallback(mSoftApCallback, new HandlerExecutor(mHandler));
    }

    public void unRegisterSoftApCallback() {