am 0233d732: am 2dc11d40: Merge "Fixed a Settings dialog crash." into lmp-dev

* commit '0233d732eb124a0e09e35e65b630e82a10b5d426':
  Fixed a Settings dialog crash.
This commit is contained in:
PauloftheWest
2014-08-21 00:44:36 +00:00
committed by Android Git Automerger

View File

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