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:
PauloftheWest
2014-08-20 10:55:12 -07:00
parent ff0e81eb09
commit b58e2005ab

View File

@@ -135,8 +135,10 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
mCachedDevice = cachedDevice; mCachedDevice = cachedDevice;
mCachedDevice.registerCallback(this); mCachedDevice.registerCallback(this);
addPreferencesForProfiles(); if (isResumed()) {
refresh(); addPreferencesForProfiles();
refresh();
}
} }
private void addPreferencesForProfiles() { private void addPreferencesForProfiles() {