* commit 'a547bb9940e38c6dd60eb998f17a17c26e350bbf': 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) {
|
||||
mCachedDevice = cachedDevice;
|
||||
|
||||
mCachedDevice.registerCallback(this);
|
||||
if (isResumed()) {
|
||||
mCachedDevice.registerCallback(this);
|
||||
addPreferencesForProfiles();
|
||||
refresh();
|
||||
}
|
||||
|
Reference in New Issue
Block a user