Loading src/com/android/settings/bluetooth/DevicePickerFragment.java +12 −0 Original line number Diff line number Diff line Loading @@ -103,12 +103,24 @@ public final class DevicePickerFragment extends DeviceListPreferenceFragment { public void onStart() { super.onStart(); addCachedDevices(); mSelectedDevice = null; if (mStartScanOnStart) { mLocalAdapter.startScanning(true); mStartScanOnStart = false; } } @Override public void onDestroy() { super.onDestroy(); /* Check if any device was selected, if no device selected * send ACTION_DEVICE_SELECTED with a null device, otherwise * don't do anything */ if (mSelectedDevice == null) { sendDevicePickedIntent(null); } } @Override void onDevicePreferenceClick(BluetoothDevicePreference btPreference) { mLocalAdapter.stopScanning(); Loading Loading
src/com/android/settings/bluetooth/DevicePickerFragment.java +12 −0 Original line number Diff line number Diff line Loading @@ -103,12 +103,24 @@ public final class DevicePickerFragment extends DeviceListPreferenceFragment { public void onStart() { super.onStart(); addCachedDevices(); mSelectedDevice = null; if (mStartScanOnStart) { mLocalAdapter.startScanning(true); mStartScanOnStart = false; } } @Override public void onDestroy() { super.onDestroy(); /* Check if any device was selected, if no device selected * send ACTION_DEVICE_SELECTED with a null device, otherwise * don't do anything */ if (mSelectedDevice == null) { sendDevicePickedIntent(null); } } @Override void onDevicePreferenceClick(BluetoothDevicePreference btPreference) { mLocalAdapter.stopScanning(); Loading