Messaging: Implement option for swipe right to delete.
Squashed commit of the following: Author: Adnan Begovic <adnan@cyngn.com> Date: Thu Jan 14 17:20:43 2016 -0800 Messaging: Implement option for swipe to delete. No one wants to swipe to archive, that's stupid. Change-Id: Ia8f0fc675582ef343311e60b755e284322f25102 Author: chengzhi.hou <chengzhi.hou@ck-telecom.com> Date: Wed Feb 24 20:01:17 2016 +0800 Messaging: Swipe right to delete conversation Change "swipe delete" to "swipe right delete", so SwipeArchive and SwipeDelete can exist at the same time. Change-Id: Id66167c2e749f8ab0ee917e0138027c7404b8c90 Author: Michael Bestas <mikeioannina@cyanogenmod.org> Date: Tue Mar 1 02:27:16 2016 +0200 Improve swipe to delete strings Change-Id: I180d09a6680084d9fd87c6dafd56db18ca5a580a Author: Joey Rizzoli <joey@cyanogenmoditalia.it> Date: Mon Oct 17 16:32:25 2016 +0200 Messaging: show snackbar instead of toast when deleting conversation more consistency with archive action Change-Id: I06129850860a2a51c10ade65fb87c9f37a0c2bfa Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it> Change-Id: Ia8f0fc675582ef343311e60b755e284322f25102
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|left"
|
||||
android:visibility="gone"
|
||||
android:src="@drawable/ic_archive_small_dark"
|
||||
android:importantForAccessibility="no"
|
||||
android:contentDescription="@null"/>
|
||||
<FrameLayout
|
||||
@@ -50,7 +49,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:visibility="gone"
|
||||
android:src="@drawable/ic_archive_small_dark"
|
||||
android:importantForAccessibility="no"
|
||||
android:contentDescription="@null"/>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2015 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.
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Swipe to delete conversation -->
|
||||
<string name="swipe_to_delete_conversation_pref_title">Swipe to delete</string>
|
||||
<string name="swipe_to_delete_conversation_pref_summary">Swipe to the right to delete a conversation</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016 The CyanogenMod 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.
|
||||
-->
|
||||
<resources>
|
||||
<!-- Preference keys for user-visible settings -->
|
||||
<!-- Application-wide settings -->
|
||||
<string name="swipe_right_deletes_conversation_key" translatable="false">swipe_right_deletes_conversation</string>
|
||||
|
||||
<!-- This should really go into a config xml, but whoever wrote this app is an idiot, so follow their pattern -->
|
||||
<bool name="swipe_right_deletes_conversation_default" translatable="false">false</bool>
|
||||
</resources>
|
||||
@@ -66,6 +66,13 @@
|
||||
android:persistent="true"
|
||||
android:dependency="@string/notifications_enabled_pref_key" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/swipe_right_deletes_conversation_key"
|
||||
android:title="@string/swipe_to_delete_conversation_pref_title"
|
||||
android:summary="@string/swipe_to_delete_conversation_pref_summary"
|
||||
android:defaultValue="false"
|
||||
android:persistent="true" />
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="@string/advanced_pref_key"
|
||||
android:title="@string/advanced_settings" />
|
||||
|
||||
@@ -67,6 +67,13 @@
|
||||
android:persistent="true"
|
||||
android:dependency="@string/notifications_enabled_pref_key" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/swipe_right_deletes_conversation_key"
|
||||
android:title="@string/swipe_to_delete_conversation_pref_title"
|
||||
android:summary="@string/swipe_to_delete_conversation_pref_summary"
|
||||
android:defaultValue="false"
|
||||
android:persistent="true" />
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="@string/advanced_pref_key"
|
||||
android:title="@string/advanced_settings" />
|
||||
|
||||
@@ -66,6 +66,13 @@
|
||||
android:persistent="true"
|
||||
android:dependency="@string/notifications_enabled_pref_key" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/swipe_right_deletes_conversation_key"
|
||||
android:title="@string/swipe_to_delete_conversation_pref_title"
|
||||
android:summary="@string/swipe_to_delete_conversation_pref_summary"
|
||||
android:defaultValue="false"
|
||||
android:persistent="true" />
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="@string/advanced_pref_key"
|
||||
android:title="@string/advanced_settings" />
|
||||
|
||||
Reference in New Issue
Block a user