OSDN Git Service

Start bluetooth scan on screen orientation change.
authorSanket Padawe <sanketpadawe@google.com>
Mon, 11 May 2015 20:09:59 +0000 (13:09 -0700)
committerSanket Padawe <sanketpadawe@google.com>
Mon, 11 May 2015 20:09:59 +0000 (13:09 -0700)
Bug: 20666842
Change-Id: I95975f46c1ead1399c8f1a9197bd7357992cc3b0

src/com/android/settings/bluetooth/BluetoothSettings.java

index 1d0dc7e..1b0a507 100755 (executable)
@@ -136,7 +136,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
     @Override
     public void onActivityCreated(Bundle savedInstanceState) {
         super.onActivityCreated(savedInstanceState);
-        mInitialScanStarted = (savedInstanceState != null);    // don't auto start scan after rotation
+        mInitialScanStarted = false;
         mInitiateDiscoverable = true;
 
         mEmptyView = (TextView) getView().findViewById(android.R.id.empty);