summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorvenkata Jagadeesh <vjagad@codeaurora.org>2015-11-04 11:29:47 +0530
committerSteve Kondik <steve@cyngn.com>2016-07-01 05:03:22 -0700
commit403f50c7cda2d5f214600978fdd920cf2d98131b (patch)
tree06dfefb0549f9c140f90b916c424964c33ef317a /src
parentd0f59be8d45b830d23ba3dfaa56417ed94767352 (diff)
downloadpackages_apps_Settings-403f50c7cda2d5f214600978fdd920cf2d98131b.zip
packages_apps_Settings-403f50c7cda2d5f214600978fdd920cf2d98131b.tar.gz
packages_apps_Settings-403f50c7cda2d5f214600978fdd920cf2d98131b.tar.bz2
Don't start auto scan if screen recovers from frozen state
Use case:Inquiry initiated from UI after connecting with blackberryZ30 Failure: Inquiry initiated from UI automatically after connecting with blackberryZ30,which is not expected Test steps: 1. Go to BT settings page. 2. Initiate pair and connect remote device from the available devices list Root cause:mInitialScanStarted set always to false and for every onActivityCreated,scan will be triggered from UI Fix: mInitialScanStarted set to false only for new instance,if any screen recover case,it should not be set as its not a new instance. Change-Id: Ia38323d5136857e6fe8fa69ed6336d889e29287b
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothSettings.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java
index 0f0952e..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);