From 8825d9aa27e3c82094ca347103993c1090125a26 Mon Sep 17 00:00:00 2001 From: Himanshu Rawat Date: Thu, 9 Dec 2021 07:15:44 +0000 Subject: Corrected comment on when BT is not disabled on entering airplane mode. Bug: 208945756 Test: Manual Change-Id: I790356dbe8664677c5aef7e784eb3c9b30e790cf --- .../core/java/com/android/server/BluetoothAirplaneModeListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core/java/com/android/server/BluetoothAirplaneModeListener.java b/services/core/java/com/android/server/BluetoothAirplaneModeListener.java index 263ff189a288..380b1f37b981 100644 --- a/services/core/java/com/android/server/BluetoothAirplaneModeListener.java +++ b/services/core/java/com/android/server/BluetoothAirplaneModeListener.java @@ -112,9 +112,9 @@ class BluetoothAirplaneModeListener { void handleAirplaneModeChange() { if (shouldSkipAirplaneModeChange()) { Log.i(TAG, "Ignore airplane mode change"); - // We have to store Bluetooth state here, so if user turns off Bluetooth - // after airplane mode is turned on, we don't forget to turn on Bluetooth - // when airplane mode turns off. + // Airplane mode enabled when Bluetooth is being used for audio/headering aid. + // Bluetooth is not disabled in such case, only state is changed to + // BLUETOOTH_ON_AIRPLANE mode. mAirplaneHelper.setSettingsInt(Settings.Global.BLUETOOTH_ON, BluetoothManagerService.BLUETOOTH_ON_AIRPLANE); if (shouldPopToast()) { -- cgit v1.2.3-59-g8ed1b