diff options
author | Daisuke Miyakawa <dmiyakawa@google.com> | 2011-11-21 11:20:47 -0800 |
---|---|---|
committer | Daisuke Miyakawa <dmiyakawa@google.com> | 2011-11-22 11:29:15 -0800 |
commit | 76b4deef35c7d00a75798323f92460ea54e4993e (patch) | |
tree | 2cb1625f43337a768405079cfbb643b0e0706795 /res/menu | |
parent | 68f056b2fc685b48828ad0906f2ebab9fbd89336 (diff) | |
download | packages_apps_Contacts-76b4deef35c7d00a75798323f92460ea54e4993e.tar.gz packages_apps_Contacts-76b4deef35c7d00a75798323f92460ea54e4993e.tar.bz2 packages_apps_Contacts-76b4deef35c7d00a75798323f92460ea54e4993e.zip |
Expose "new contact" to split action bar
Because CallLog does something costly on onVisibilityChanged(),
the call should be done after the animation, while
onVisibilityChanged() for phone all tab should be called immediately
so that users can see the icon just after their swipe (same behavior
as People UI)
Also remove "new contact" menu from phone search. Now that we have
the 3rd tab containing all the contacts, we don't need the menu
on "search" screen (same behavior as Phone UI)
Remove invalidateOptionsMenu() call inside
CallLog#onVisibilityChanged() since the method should be called
by its parent Activity when needed.
Bug: 5650137
Change-Id: Ia6f377a720dac9aa4e3ae9e54394b9b2606bb2cf
Diffstat (limited to 'res/menu')
-rw-r--r-- | res/menu/dialtacts_options.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/menu/dialtacts_options.xml b/res/menu/dialtacts_options.xml index 54ca086d1..f9851a80d 100644 --- a/res/menu/dialtacts_options.xml +++ b/res/menu/dialtacts_options.xml @@ -35,6 +35,7 @@ <item android:id="@+id/add_contact" + android:icon="@drawable/ic_add_contact_holo_dark" android:title="@string/menu_newContact" - android:showAsAction="withText" /> + android:showAsAction="ifRoom" /> </menu> |