am a6b9eaaf: am a547bb99: am 654517a5: Merge "Fixed a Null Pointer Error in Bluetooth Settings." into lmp-dev

* commit 'a6b9eaafbb88d556b8cdcbb5ad10dc8b83b3a0f4':
  Fixed a Null Pointer Error in Bluetooth Settings.
This commit is contained in:
PauloftheWest
2014-09-09 22:07:22 +00:00
committed by Android Git Automerger

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