From 5407bf5a48453306c7526a227d7e0716eb59f82a Mon Sep 17 00:00:00 2001 From: Firefly Date: Wed, 4 Nov 2015 15:49:56 +0800 Subject: [PATCH] [packages/apps/Settings] fix bug: bt can not be foud after reopen bt in BluetoothSettings Activity --- .../src/com/android/settings/bluetooth/BluetoothSettings.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothSettings.java b/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothSettings.java index 7e62b06b42..107347f2a3 100755 --- a/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -352,6 +352,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem break; case BluetoothAdapter.STATE_OFF: + mInitiateDiscoverable = true; messageId = R.string.bluetooth_empty_list_bluetooth_off; if (isUiRestricted()) { messageId = R.string.bluetooth_empty_list_user_restricted;