diff options
author | Cheng Xiaolong <chengxiaolong@codeaurora.org> | 2014-02-17 22:11:23 -0500 |
---|---|---|
committer | emancebo <emancebo@cyngn.com> | 2014-09-03 16:58:12 -0700 |
commit | 767baf5e0e480a63b05251237413d4aa377d2445 (patch) | |
tree | ad63adc421f3da9b15fc2ea6579d543aa36e09d2 /res | |
parent | 3cc956f5d5403987c4a39446eb293a44c9b002b4 (diff) | |
download | android_packages_apps_Dialer-767baf5e0e480a63b05251237413d4aa377d2445.tar.gz android_packages_apps_Dialer-767baf5e0e480a63b05251237413d4aa377d2445.tar.bz2 android_packages_apps_Dialer-767baf5e0e480a63b05251237413d4aa377d2445.zip |
Dialer: Add IP call support in dialer
- Add IP call option in dialer tab.
- Add menu including "IP call","Edit number before call","Send
text message","Add to contacts" in call log tab.
Conflicts:
src/com/android/dialer/calllog/CallLogAdapter.java
src/com/android/dialer/dialpad/DialpadFragment.java
Change-Id: Ib368c284c6196f00e356476a3b059d4f65122545
Diffstat (limited to 'res')
-rw-r--r-- | res/menu/call_log_context_menu_options.xml | 58 | ||||
-rw-r--r-- | res/menu/dialpad_options.xml | 8 |
2 files changed, 66 insertions, 0 deletions
diff --git a/res/menu/call_log_context_menu_options.xml b/res/menu/call_log_context_menu_options.xml new file mode 100644 index 000000000..6fad0adaa --- /dev/null +++ b/res/menu/call_log_context_menu_options.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2014, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:id="@+id/menu_ip_call_by_slot1" + android:showAsAction="withText" + android:orderInCategory="1" /> + + <item + android:id="@+id/menu_ip_call_by_slot2" + android:showAsAction="withText" + android:orderInCategory="1" /> + + <item + android:id="@+id/menu_edit_before_call" + android:title="@string/recentCalls_editNumberBeforeCall" + android:showAsAction="withText" + android:orderInCategory="1" /> + + <item + android:id="@+id/menu_send_text_message" + android:title="@string/menu_sendTextMessage" + android:showAsAction="withText" + android:orderInCategory="1" /> + + <item + android:id="@+id/menu_add_to_contacts" + android:title="@string/recentCalls_addToContact" + android:showAsAction="withText" + android:orderInCategory="1" /> +</menu> diff --git a/res/menu/dialpad_options.xml b/res/menu/dialpad_options.xml index a55e37060..0bbcecbd2 100644 --- a/res/menu/dialpad_options.xml +++ b/res/menu/dialpad_options.xml @@ -15,6 +15,14 @@ --> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item + android:id="@+id/menu_ip_call_by_slot1" + android:showAsAction="withText" + android:orderInCategory="1" /> + <item + android:id="@+id/menu_ip_call_by_slot2" + android:showAsAction="withText" + android:orderInCategory="1" /> + <item android:id="@+id/menu_add_contacts" android:title="@string/recentCalls_addToContact" android:showAsAction="withText" |