b/2026622 Fixed the problem with the UI keeps showing that BT is scanning even though it has stopped.

For some reason, the framework does not notify the settings app when the scan is done while the screen is off.
This commit is contained in:
Michael Chan
2009-08-12 14:27:18 -07:00
parent e25e4e4c57
commit e15d3a0cfb

View File

@@ -116,6 +116,7 @@ public class BluetoothSettings extends PreferenceActivity
mNamePreference.resume(); mNamePreference.resume();
mLocalManager.registerCallback(this); mLocalManager.registerCallback(this);
mDeviceList.setProgress(mLocalManager.getBluetoothManager().isDiscovering());
mLocalManager.startScanning(false); mLocalManager.startScanning(false);
registerReceiver(mReceiver, registerReceiver(mReceiver,