Use TetherEnabler in AllInOneTetherSettings to manage master switch
In AllInOneTetherSettings, we use TetherEnabler to hanle all behavior related to tethering switch on/off. In TetherEnbler, add WifiManager.WIFI_AP_STATE_CHANGED_ACTION to cover all possible tethering state change. TetherEnablerTest is modified accordingly. Bug: 147322704 Test: make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=TetherEnablerTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=AllInOneTetherSettingsTest Change-Id: I505b3825f79260983fff9d3935ba834ad8f9f690
This commit is contained in:
@@ -47,8 +47,7 @@ public final class BluetoothTetherPreferenceController extends AbstractPreferenc
|
||||
|
||||
private static final String TAG = "BluetoothTetherPreferenceController";
|
||||
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
||||
@VisibleForTesting
|
||||
static final String PREF_KEY = "enable_bluetooth_tethering";
|
||||
public static final String PREF_KEY = "enable_bluetooth_tethering";
|
||||
private final ConnectivityManager mCm;
|
||||
private int mBluetoothState;
|
||||
private Preference mPreference;
|
||||
|
Reference in New Issue
Block a user