summaryrefslogtreecommitdiffstats
path: root/java/com/android/dialer/calldetails/res
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2017-11-22 10:58:56 -0800
committerCopybara-Service <copybara-piper@google.com>2017-11-22 16:26:29 -0800
commit7ba72d2d5b4061cf55d5440d4434a660c9108d2e (patch)
treec2de078bec6bbc96654c1032d016cdb19ac004c0 /java/com/android/dialer/calldetails/res
parent1fb1c697a2b71ed629df76c4be129729f3cb6aea (diff)
downloadandroid_packages_apps_Dialer-7ba72d2d5b4061cf55d5440d4434a660c9108d2e.tar.gz
android_packages_apps_Dialer-7ba72d2d5b4061cf55d5440d4434a660c9108d2e.tar.bz2
android_packages_apps_Dialer-7ba72d2d5b4061cf55d5440d4434a660c9108d2e.zip
Allow deleting a call log entry in the call log UI and the call details UI.
In the call log UI, an entry can be deleted by selecting "delete" in its context menu. In the call details UI, a "delete" button is added at the bottom. The "delete" icon at the top right of the call details UI is removed. Public-Origin-Change-Id: Iabe1310fb9a97a277cf482a3fd61ffccbec125fe Signed-off-by: Linyu He <linyuh@google.com> Author: Masafumi Miya <masafumi.miya@sony.com> Bug: 38188896 Test: CallLogActivityIntegrationTest, CallDetailsActivityIntegrationTest PiperOrigin-RevId: 176677167 Change-Id: I2e31cd112efdfb83393f5e68ce016dcf36ac4858
Diffstat (limited to 'java/com/android/dialer/calldetails/res')
-rw-r--r--java/com/android/dialer/calldetails/res/layout/call_details_footer.xml9
-rw-r--r--java/com/android/dialer/calldetails/res/menu/call_details_menu.xml24
-rw-r--r--java/com/android/dialer/calldetails/res/values/strings.xml2
3 files changed, 10 insertions, 25 deletions
diff --git a/java/com/android/dialer/calldetails/res/layout/call_details_footer.xml b/java/com/android/dialer/calldetails/res/layout/call_details_footer.xml
index fbca3f8fe..dddb45156 100644
--- a/java/com/android/dialer/calldetails/res/layout/call_details_footer.xml
+++ b/java/com/android/dialer/calldetails/res/layout/call_details_footer.xml
@@ -50,4 +50,13 @@
android:drawableStart="@drawable/quantum_ic_report_grey600_24"
android:text="@string/call_details_report_call_id"
android:visibility="gone"/>
+
+ <TextView
+ android:id="@+id/call_detail_action_delete"
+ style="@style/CallDetailsActionItemStyle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:drawableStart="@drawable/quantum_ic_delete_vd_theme_24"
+ android:tint="@color/dialer_secondary_text_color"
+ android:text="@string/delete"/>
</LinearLayout>
diff --git a/java/com/android/dialer/calldetails/res/menu/call_details_menu.xml b/java/com/android/dialer/calldetails/res/menu/call_details_menu.xml
deleted file mode 100644
index df0c34827..000000000
--- a/java/com/android/dialer/calldetails/res/menu/call_details_menu.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright (C) 2017 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
- -->
-<menu xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/call_detail_delete_menu_item"
- android:icon="@drawable/quantum_ic_delete_white_24"
- android:title="@string/delete"
- app:showAsAction="ifRoom"/>
-</menu> \ No newline at end of file
diff --git a/java/com/android/dialer/calldetails/res/values/strings.xml b/java/com/android/dialer/calldetails/res/values/strings.xml
index 1441efdcd..74ac71c32 100644
--- a/java/com/android/dialer/calldetails/res/values/strings.xml
+++ b/java/com/android/dialer/calldetails/res/values/strings.xml
@@ -18,7 +18,7 @@
<!-- Title bar for call detail screen -->
<string name="call_details">Call details</string>
- <!-- Menu item in call details used to remove a call or voicemail from the call log. -->
+ <!-- Text for the action item to remove a call or voicemail from the call log. -->
<string name="delete">Delete</string>
<!-- Option displayed in context menu to copy long pressed phone number. [CHAR LIMIT=48] -->