diff options
author | tnmy-cyngn <tlnu@cyngn.com> | 2016-05-09 01:22:13 +0530 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-11 10:38:17 -0700 |
commit | 0dabdec1f6f6f90b6a0cd45646bdbf5fa79cde74 (patch) | |
tree | 7a7cdf30f367db4f93ad187f00ff980bf3b5bbd5 /res | |
parent | 1f769b00e211fae9f482f063e27efeab39c874ab (diff) | |
download | packages_apps_Messaging-0dabdec1f6f6f90b6a0cd45646bdbf5fa79cde74.zip packages_apps_Messaging-0dabdec1f6f6f90b6a0cd45646bdbf5fa79cde74.tar.gz packages_apps_Messaging-0dabdec1f6f6f90b6a0cd45646bdbf5fa79cde74.tar.bz2 |
Save messages to SIM feature
Porting save message to SIM feature from 12.1 to 13.0
Bug-Id: PAELLA-221
Change-Id: Id340d2cd5bb1ec0fa82cfbea8575999e65f4c34e
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/ic_overflow_dark.png | bin | 0 -> 2834 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_overflow_dark.png | bin | 0 -> 2772 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_overflow_dark.png | bin | 0 -> 2905 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/ic_overflow_dark.png | bin | 0 -> 3057 bytes | |||
-rw-r--r-- | res/layout/sim_list.xml | 41 | ||||
-rw-r--r-- | res/menu/conversation_fragment_select_menu.xml | 10 | ||||
-rw-r--r-- | res/menu/sim_msg_multi_select_menu.xml | 38 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 49 | ||||
-rw-r--r-- | res/xml-v21/preferences_application.xml | 10 | ||||
-rw-r--r-- | res/xml-v23/preferences_application.xml | 10 | ||||
-rw-r--r-- | res/xml/preferences_application.xml | 9 |
11 files changed, 167 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_overflow_dark.png b/res/drawable-hdpi/ic_overflow_dark.png Binary files differnew file mode 100644 index 0000000..e9224e5 --- /dev/null +++ b/res/drawable-hdpi/ic_overflow_dark.png diff --git a/res/drawable-mdpi/ic_overflow_dark.png b/res/drawable-mdpi/ic_overflow_dark.png Binary files differnew file mode 100644 index 0000000..685b4ea --- /dev/null +++ b/res/drawable-mdpi/ic_overflow_dark.png diff --git a/res/drawable-xhdpi/ic_overflow_dark.png b/res/drawable-xhdpi/ic_overflow_dark.png Binary files differnew file mode 100644 index 0000000..74b258f --- /dev/null +++ b/res/drawable-xhdpi/ic_overflow_dark.png diff --git a/res/drawable-xxhdpi/ic_overflow_dark.png b/res/drawable-xxhdpi/ic_overflow_dark.png Binary files differnew file mode 100644 index 0000000..fff1b18 --- /dev/null +++ b/res/drawable-xxhdpi/ic_overflow_dark.png diff --git a/res/layout/sim_list.xml b/res/layout/sim_list.xml new file mode 100644 index 0000000..daf5209 --- /dev/null +++ b/res/layout/sim_list.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2008 Esmertec AG. + * Copyright (C) 2008 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:layout_gravity="center"> + + <android.support.v7.widget.RecyclerView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:listSelector="@android:color/transparent" + android:clipToPadding="false" /> + <TextView + android:id="@+id/empty_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/sim_empty" + android:layout_gravity="center" + android:visibility="gone" /> +</FrameLayout> diff --git a/res/menu/conversation_fragment_select_menu.xml b/res/menu/conversation_fragment_select_menu.xml index 7ce0829..f76deed 100644 --- a/res/menu/conversation_fragment_select_menu.xml +++ b/res/menu/conversation_fragment_select_menu.xml @@ -60,4 +60,14 @@ android:icon="@drawable/ic_delete_small_dark" android:title="@string/action_delete_message" appcompat:showAsAction="collapseActionView|always"/> + <item + android:icon="@drawable/ic_overflow_dark" + appcompat:showAsAction="collapseActionView|always"> + <menu> + <item + android:id="@+id/copy_to_sim" + appcompat:showAsAction="never" + android:title="@string/operation_to_card_memory"/> + </menu> + </item> </menu> diff --git a/res/menu/sim_msg_multi_select_menu.xml b/res/menu/sim_msg_multi_select_menu.xml new file mode 100644 index 0000000..057adc8 --- /dev/null +++ b/res/menu/sim_msg_multi_select_menu.xml @@ -0,0 +1,38 @@ +<?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" + xmlns:appcompat="http://schemas.android.com/apk/res-auto"> + <item + android:id="@+id/delete" + android:icon="@drawable/ic_delete_small_dark" + appcompat:showAsAction="always" + android:title="@string/delete"/> +</menu> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 4ad47e2..b4db481 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -95,4 +95,53 @@ <string name="show_emoticons_pref_summary">Show the emoticons key on the keyboard</string> <string name="select_phone_account_title">Send with</string> + + <!-- Copy message to sim --> + <!-- Settings item for entering SIM card message screen --> + <string name="pref_title_manage_sim_messages">Manage SIM card messages</string> + <string name="pref_title_manage_sim_messages_slot1">Manage SIM 1 messages</string> + <string name="pref_title_manage_sim_messages_slot2">Manage SIM 2 messages</string> + <string name="copy_to_sim">Copy message to SIM card</string> + <string name="copy_to_sim_success"><xliff:g id="count">%1$d</xliff:g> of <xliff:g id="total">%2$d</xliff:g> messages saved to SIM card.</string> + <string name="copy_to_sim_fail">Unable to save message</string> + <string name="copy_to_phone_success">Message saved</string> + <string name="copy_to_phone_fail">Unable to save message</string> + <!-- Message that appears on the "SMS messges on SIM card" screen when there are no messages on the SIM card --> + <string name="sim_empty">No messages on SIM card.</string> + <!-- Context menu item on an individual message for emailing the sender --> + <string name="menu_send_email">Send email to <xliff:g id="name">%s</xliff:g></string> + <!-- Context menu item on an individual message for dialing the sender's phone number --> + <string name="menu_call_back">Call <xliff:g id="name">%s</xliff:g></string> + <!-- Menu shown in the context menu when long pressing on a message when the message contains + one or more phone numbers and/or email addresses and the number or email is new to + contacts. [CHAR LIMIT=50] --> + <string name="menu_add_address_to_contacts">Add <xliff:g id="contactEmailOrNumber">%s</xliff:g> to People</string> + <string name="sim_capacity_title">SIM capacity</string> + <string name="sim_capacity"><xliff:g id="used">%1$d</xliff:g> of <xliff:g id="total">%2$d</xliff:g> SIM card entries are used</string> + <!-- Confirm Delete --> + <!-- Delete confirmation dialog title --> + <string name="confirm_dialog_title">Delete?</string> + <!-- Title of screen displaying messages on SIM card --> + <string name="sim_manage_messages_title">Text messages on SIM card</string> + <!-- Message that appears on screen while SIM card messages are retrieved --> + <string name="refreshing">Refreshing\u2026</string> + <string name="confirm_delete_selected_messages">Selected message will be deleted.</string> + <!-- Delete button title --> + <string name="delete">Delete</string> + <!-- Context menu item on an individual message for forwarding it to another recipient --> + <string name="menu_forward">Forward</string> + <string name="menu_reply">Reply</string> + <!-- Menu title to copy a selected message from the SIM card to the phone. --> + <string name="sim_copy_to_phone_memory" product="tablet">Copy to tablet memory</string> + <!-- Menu title to copy a selected message from the SIM card to the phone. --> + <string name="sim_copy_to_phone_memory" product="default">Copy to phone memory</string> + <string name="selected_all">Select all</string> + <string name="deselected_all">Deselect all</string> + <string name="selected_count"><xliff:g id="COUNT">%d</xliff:g> selected</string> + <!-- Text to be used for affirmative response button in dialog boxes --> + <string name="yes">OK</string> + <!-- Copy message to sim --> + <string name="operation_to_card_memory">Copy message to SIM card</string> + <string name="slot1">SIM 1</string> + <string name="slot2">SIM 2</string> </resources> diff --git a/res/xml-v21/preferences_application.xml b/res/xml-v21/preferences_application.xml index 4d39999..603ddb6 100644 --- a/res/xml-v21/preferences_application.xml +++ b/res/xml-v21/preferences_application.xml @@ -145,6 +145,16 @@ android:title="@string/mms_delete_pref_title" /> </PreferenceCategory> + <Preference + android:key="pref_key_manage_sim_messages" + android:title="@string/pref_title_manage_sim_messages" /> + <Preference + android:key="pref_key_manage_sim_messages_slot1" + android:title="@string/pref_title_manage_sim_messages_slot1" /> + <Preference + android:key="pref_key_manage_sim_messages_slot2" + android:title="@string/pref_title_manage_sim_messages_slot2" /> + <!-- QuickMessage settings --> <PreferenceCategory android:title="@string/pref_quickmessage"> diff --git a/res/xml-v23/preferences_application.xml b/res/xml-v23/preferences_application.xml index 95ba3c3..e198038 100644 --- a/res/xml-v23/preferences_application.xml +++ b/res/xml-v23/preferences_application.xml @@ -147,6 +147,16 @@ android:title="@string/mms_delete_pref_title" /> </PreferenceCategory> + <Preference + android:key="pref_key_manage_sim_messages" + android:title="@string/pref_title_manage_sim_messages" /> + <Preference + android:key="pref_key_manage_sim_messages_slot1" + android:title="@string/pref_title_manage_sim_messages_slot1" /> + <Preference + android:key="pref_key_manage_sim_messages_slot2" + android:title="@string/pref_title_manage_sim_messages_slot2" /> + <!-- QuickMessage settings --> <PreferenceCategory android:title="@string/pref_quickmessage"> diff --git a/res/xml/preferences_application.xml b/res/xml/preferences_application.xml index 64bc7e2..279ee9a 100644 --- a/res/xml/preferences_application.xml +++ b/res/xml/preferences_application.xml @@ -145,6 +145,15 @@ android:title="@string/mms_delete_pref_title" /> </PreferenceCategory> + <Preference + android:key="pref_key_manage_sim_messages" + android:title="@string/pref_title_manage_sim_messages" /> + <Preference + android:key="pref_key_manage_sim_messages_slot1" + android:title="@string/pref_title_manage_sim_messages_slot1" /> + <Preference + android:key="pref_key_manage_sim_messages_slot2" + android:title="@string/pref_title_manage_sim_messages_slot2" /> <!-- QuickMessage settings --> <PreferenceCategory android:title="@string/pref_quickmessage"> |