Merge "Fix Bluetooth tethering toggle status" into udc-dev am: 74e1412f8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/23199826 Change-Id: I741fa8c4179c8d6f962b97a5a9146baf08a44cff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -171,6 +171,8 @@ public class TetherSettings extends RestrictedSettingsFragment
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setupTetherPreference();
|
||||||
|
|
||||||
final Activity activity = getActivity();
|
final Activity activity = getActivity();
|
||||||
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
|
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
|
||||||
if (adapter != null) {
|
if (adapter != null) {
|
||||||
@@ -184,7 +186,6 @@ public class TetherSettings extends RestrictedSettingsFragment
|
|||||||
new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED));
|
new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED));
|
||||||
}
|
}
|
||||||
|
|
||||||
setupTetherPreference();
|
|
||||||
setTopIntroPreferenceTitle();
|
setTopIntroPreferenceTitle();
|
||||||
|
|
||||||
mDataSaverBackend.addListener(this);
|
mDataSaverBackend.addListener(this);
|
||||||
@@ -605,6 +606,7 @@ public class TetherSettings extends RestrictedSettingsFragment
|
|||||||
public void onServiceConnected(int profile, BluetoothProfile proxy) {
|
public void onServiceConnected(int profile, BluetoothProfile proxy) {
|
||||||
if (mBluetoothPan.get() == null) {
|
if (mBluetoothPan.get() == null) {
|
||||||
mBluetoothPan.set((BluetoothPan) proxy);
|
mBluetoothPan.set((BluetoothPan) proxy);
|
||||||
|
updateBluetoothState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user