Merge "Fixed a Null Pointer Error in Bluetooth Settings." into lmp-dev

This commit is contained in:
PauloftheWest
2014-09-09 20:45:59 +00:00
committed by Android (Google) Code Review

View File

@@ -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();
}