From c90cc15b804fb00339a3b98e5c951549f9b03599 Mon Sep 17 00:00:00 2001 From: Walter Jang Date: Fri, 19 Jun 2015 14:15:08 -0700 Subject: Make saving a contact less confusing * Add always visible save menu item (a checkmark icon) on both the compact and full editors. Selecting it saves changes and closes the editor (what back does currently). * On the compact editor, make back perform a discard, including warning the user if there are unsaved changes. * On the full editor, back still saves and goes back to the full editor. This is not ideal but it's out of scope to not save changes between the two editors when editing an existing contact. Bug 19983789 Change-Id: Ie23b75978db70f2b438a824e39f0ae8fb8aa99ec --- res/menu/edit_contact.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'res/menu') diff --git a/res/menu/edit_contact.xml b/res/menu/edit_contact.xml index fe6d2b9c4..2ff5f8149 100644 --- a/res/menu/edit_contact.xml +++ b/res/menu/edit_contact.xml @@ -16,9 +16,10 @@ + android:id="@+id/menu_save" + android:showAsAction="always" + android:icon="@drawable/ic_done_wht_24dp" + android:title="@string/menu_save" />