summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-09 15:59:47 -0700
committerAndrew Lee <anwlee@google.com>2015-06-10 15:32:06 -0700
commit2f05af35af03de67c1c474cd148719b24fac3552 (patch)
tree8fca74e40392668e3a545cfdf94c5310835dc51d /res
parenta74ebca775f79f12354eaf335cb952ce246272fc (diff)
Move "Report" to CallDetailActivity.
- Delete old report button/handling code. + Convert menu click listeners into single onMenuItemClick method. + Add and populate objectId on PhoneCallDetails, to be able to tell from the CallDetailActivity whether to enable reporting. Change-Id: Ie4b9a3c1835792cbba04dc826f71fd2e53071400
Diffstat (limited to 'res')
-rw-r--r--res/layout/call_log_list_item_actions.xml14
-rw-r--r--res/menu/call_details_options.xml12
-rw-r--r--res/values/strings.xml15
3 files changed, 10 insertions, 31 deletions
diff --git a/res/layout/call_log_list_item_actions.xml b/res/layout/call_log_list_item_actions.xml
index 569048b7d..d4c970655 100644
--- a/res/layout/call_log_list_item_actions.xml
+++ b/res/layout/call_log_list_item_actions.xml
@@ -98,18 +98,4 @@
</LinearLayout>
- <LinearLayout
- android:id="@+id/report_action"
- style="@style/CallLogActionStyle">
-
- <ImageView
- style="@style/CallLogActionIconStyle"
- android:src="@drawable/ic_report_problem_24dp" />
-
- <TextView
- style="@style/CallLogActionTextStyle"
- android:text="@string/call_log_action_report" />
-
- </LinearLayout>
-
</LinearLayout>
diff --git a/res/menu/call_details_options.xml b/res/menu/call_details_options.xml
index b98ec9ed6..f08b4facd 100644
--- a/res/menu/call_details_options.xml
+++ b/res/menu/call_details_options.xml
@@ -18,17 +18,17 @@
<item android:id="@+id/menu_trash"
android:icon="@drawable/ic_delete_24dp"
android:showAsAction="ifRoom"
- android:title="@string/recentCalls_trashVoicemail"
- android:onClick="onMenuTrashVoicemail" />
+ android:title="@string/recentCalls_trashVoicemail" />
<item android:id="@+id/menu_remove_from_call_log"
android:icon="@drawable/ic_delete_24dp"
android:showAsAction="ifRoom"
- android:title="@string/recentCalls_removeFromRecentList"
- android:onClick="onMenuRemoveFromCallLog" />
+ android:title="@string/recentCalls_removeFromRecentList" />
<item android:id="@+id/menu_edit_number_before_call"
- android:title="@string/recentCalls_editNumberBeforeCall"
- android:onClick="onMenuEditNumberBeforeCall" />
+ android:title="@string/recentCalls_editNumberBeforeCall" />
+
+ <item android:id="@+id/menu_report"
+ android:title="@string/call_detail_menu_report" />
</menu>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b852be80d..648d5e8f0 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -47,6 +47,10 @@
<xliff:g id="name">%s</xliff:g>
</string>
+ <!-- Text for a menu item to report a call as having been incorrectly identified.
+ [CHAR LIMIT=30] -->
+ <string name="call_detail_menu_report">Report inaccurate number</string>
+
<!-- Menu item used to copy a number from the call log to the dialer so it can be edited before calling it -->
<string name="recentCalls_editNumberBeforeCall">Edit number before call</string>
@@ -631,21 +635,10 @@
Call details for <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>
</string>
- <!-- Description for the "report" action for an entry in the call log. This action reports that
- the phone number lookup performed for the entry was inaccurate. [CHAR LIMIT=NONE] -->
- <string name="description_report_action">
- Report <xliff:g id="nameOrNumber" example="John Smith">^1</xliff:g>
- </string>
-
<!-- Toast message which appears when a call log entry is deleted.
[CHAR LIMIT=NONE] -->
<string name="toast_entry_removed">Deleted from call history</string>
- <!-- Button text for the "report" button displayed underneath an entry in the call log.
- Tapping causes the call log entry to be reported to Google as a bad id.
- [CHAR LIMIT=30] -->
- <string name="call_log_action_report">Report</string>
-
<!-- String used as a header in the call log above calls which occurred today.
[CHAR LIMIT=65] -->
<string name="call_log_header_today">Today</string>