Make tether preference controllers extend BasePreferenceController
These controllers extended AbstractPreferenceController, which is not quite compatible with some of the present framework. Especially for indexable keys of settings search. TetherEnabler and AllInOneTetherSettings are refactored based on the change. Tests are updated. Bug: 147272749 Test: CodeInspectionTest and other tests of classes touched by this CL Change-Id: Ic3ad13e735d133c0959a0a309319a6fd5165b015
This commit is contained in:
@@ -20,7 +20,7 @@ import static android.net.ConnectivityManager.ACTION_TETHER_STATE_CHANGED;
|
||||
import static android.net.ConnectivityManager.TETHERING_WIFI;
|
||||
import static android.net.wifi.WifiManager.WIFI_AP_STATE_CHANGED_ACTION;
|
||||
|
||||
import static com.android.settings.network.WifiTetherDisablePreferenceController.KEY_ENABLE_WIFI_TETHERING;
|
||||
import static com.android.settings.network.TetherEnabler.KEY_ENABLE_WIFI_TETHERING;
|
||||
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.bluetooth.BluetoothAdapter;
|
||||
|
Reference in New Issue
Block a user