am 43db5267
: Tell contacts to return back to Settings when done editing the profile info
* commit '43db5267d6227cc008fc482ccd777e27ff292c42': Tell contacts to return back to Settings when done editing the profile info
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user