am 815df293
: am 31a07143
: Merge "Don\'t throw exception on unexpected BT device addition." into honeycomb
* commit '815df2935978c3a5623fe28cf1970d5e39f6b95a': Don't throw exception on unexpected BT device addition.
This commit is contained in:
@@ -286,7 +286,8 @@ public class BluetoothSettings extends SettingsPreferenceFragment
|
|||||||
public void onDeviceAdded(CachedBluetoothDevice cachedDevice) {
|
public void onDeviceAdded(CachedBluetoothDevice cachedDevice) {
|
||||||
|
|
||||||
if (mDevicePreferenceMap.get(cachedDevice) != null) {
|
if (mDevicePreferenceMap.get(cachedDevice) != null) {
|
||||||
throw new IllegalStateException("Got onDeviceAdded, but cachedDevice already exists");
|
Log.e(TAG, "Got onDeviceAdded, but cachedDevice already exists");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mScreenType != SCREEN_TYPE_SETTINGS
|
if (mScreenType != SCREEN_TYPE_SETTINGS
|
||||||
|
Reference in New Issue
Block a user