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:
@@ -132,8 +132,8 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
|
|||||||
public void setDevice(CachedBluetoothDevice cachedDevice) {
|
public void setDevice(CachedBluetoothDevice cachedDevice) {
|
||||||
mCachedDevice = cachedDevice;
|
mCachedDevice = cachedDevice;
|
||||||
|
|
||||||
mCachedDevice.registerCallback(this);
|
|
||||||
if (isResumed()) {
|
if (isResumed()) {
|
||||||
|
mCachedDevice.registerCallback(this);
|
||||||
addPreferencesForProfiles();
|
addPreferencesForProfiles();
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user