am d9c5310b: am 43db5267: Tell contacts to return back to Settings when done editing the profile info

* commit 'd9c5310bfccdd964fc4e34ca8b4204c0008db1ba':
  Tell contacts to return back to Settings when done editing the profile info
This commit is contained in:
Amith Yamasani
2012-09-13 03:21:37 -07:00
committed by Android Git Automerger

View File

@@ -423,6 +423,9 @@ public class UserSettings extends SettingsPreferenceFragment
if (pref == mMePreference) {
Intent editProfile = new Intent(Intent.ACTION_EDIT);
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);
}
return false;