Fixed a Settings dialog crash.
+ Fixed a bug where Settings would crash when trying to open paired bluetooth device settings after device orientation change. Bug: 16972564 Change-Id: I0e93551ae7d8f21711d85093756fc33b62f59b24
This commit is contained in:
@@ -135,8 +135,10 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
|
||||
mCachedDevice = cachedDevice;
|
||||
|
||||
mCachedDevice.registerCallback(this);
|
||||
addPreferencesForProfiles();
|
||||
refresh();
|
||||
if (isResumed()) {
|
||||
addPreferencesForProfiles();
|
||||
refresh();
|
||||
}
|
||||
}
|
||||
|
||||
private void addPreferencesForProfiles() {
|
||||
|
Reference in New Issue
Block a user