Tell contacts to return back to Settings when done editing the profile info

Change-Id: I643884af6c062788123b59a115ce6e398430e6b1
This commit is contained in:
Amith Yamasani
2012-09-11 17:04:10 -07:00
parent 4a596b19eb
commit 43db5267d6

View File

@@ -423,6 +423,9 @@ public class UserSettings extends SettingsPreferenceFragment
if (pref == mMePreference) { if (pref == mMePreference) {
Intent editProfile = new Intent(Intent.ACTION_EDIT); Intent editProfile = new Intent(Intent.ACTION_EDIT);
editProfile.setData(ContactsContract.Profile.CONTENT_URI); editProfile.setData(ContactsContract.Profile.CONTENT_URI);
// To make sure that it returns back here when done
// TODO: Make this a proper API
editProfile.putExtra("finishActivityOnSaveCompleted", true);
startActivity(editProfile); startActivity(editProfile);
} }
return false; return false;