Fix icon loading in EditUserInfo dialog on orientation change.

UserSettings loads icons asynchronously, so an incorrect icon is loaded
on orientation change.

Bug: 30088727
Change-Id: I29b15ede4f7c3ca7e67b035a086271eccd075426
Fixes: 30088727
Test: Visual inspection
This commit is contained in:
Stephen Chen
2016-10-05 18:06:03 -07:00
parent 9fc9f0f177
commit 94d0b1674c

View File

@@ -610,7 +610,7 @@ public class UserSettings extends SettingsPreferenceFragment
case DIALOG_USER_PROFILE_EDITOR: { case DIALOG_USER_PROFILE_EDITOR: {
Dialog dlg = mEditUserInfoController.createDialog( Dialog dlg = mEditUserInfoController.createDialog(
this, this,
mMePreference.getIcon(), null,
mMePreference.getTitle(), mMePreference.getTitle(),
R.string.profile_info_settings_title, R.string.profile_info_settings_title,
this /* callback */, this /* callback */,