diff options
Diffstat (limited to 'src/com/android/settings/bluetooth/BluetoothSettings.java')
-rw-r--r-- | src/com/android/settings/bluetooth/BluetoothSettings.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java index d08cb34..37eebe7 100644 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -140,7 +140,8 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); - mInitialScanStarted = false; + /* Don't auto start scan if screen reconstructs due to frozen screen*/ + mInitialScanStarted = (savedInstanceState != null); mInitiateDiscoverable = true; mEmptyView = (TextView) getView().findViewById(android.R.id.empty); @@ -227,6 +228,10 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem if (mBluetoothEnabler != null) { mBluetoothEnabler.resume(getActivity()); } + if (mLocalAdapter != null) { + // enable page and inquiry scan + mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); + } super.onResume(); mInitiateDiscoverable = true; |