Merge "Fixed a Null Pointer Error in Bluetooth Settings." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
654517a510
@@ -132,8 +132,8 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
|
||||
public void setDevice(CachedBluetoothDevice cachedDevice) {
|
||||
mCachedDevice = cachedDevice;
|
||||
|
||||
mCachedDevice.registerCallback(this);
|
||||
if (isResumed()) {
|
||||
mCachedDevice.registerCallback(this);
|
||||
addPreferencesForProfiles();
|
||||
refresh();
|
||||
}
|
||||
|
Reference in New Issue
Block a user