diff options
author | Qi Wang <wangqi@google.com> | 2016-04-04 12:32:06 -0700 |
---|---|---|
committer | Qi Wang <wangqi@google.com> | 2016-04-06 16:54:42 -0700 |
commit | 4f78f85ab36dd157bb47799f383ceb90240f91f9 (patch) | |
tree | 1025bb1e6bcb2f6d0acd37b474ed8f134cd0392f /res | |
parent | b978ee86f18461bf94c0de2247fd2dbded0c4ad0 (diff) |
Add dialogs for spam report and block.
Screenshots:
1. block/report spam
https://screenshot.googleplex.com/5e772Kikikw
2. block
https://screenshot.googleplex.com/AEpYSYoL2E8
3. unblock(is spam and report not a spam)
https://screenshot.googleplex.com/AEZfhCXj4h8
4. unblock(not spam)
https://screenshot.googleplex.com/r7YkHuCMT1p
5. report not spam
https://screenshot.googleplex.com/jkcpm0pdKoj
Change-Id: I78fbbacece44632614026c03909289995bef5b14
Fix: 27295785
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/block_report_spam_dialog.xml | 35 | ||||
-rw-r--r-- | res/values/strings.xml | 27 |
2 files changed, 62 insertions, 0 deletions
diff --git a/res/layout/block_report_spam_dialog.xml b/res/layout/block_report_spam_dialog.xml new file mode 100644 index 000000000..a731decfc --- /dev/null +++ b/res/layout/block_report_spam_dialog.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- 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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="25dp"> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/block_report_number_alert_details" + android:layout_marginBottom="10dp" + android:textColor="@color/call_log_primary_color" + android:textSize="@dimen/blocked_number_settings_description_text_size"/> + + <CheckBox + android:id="@+id/report_number_as_spam_action" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/checkbox_report_as_spam_action" + android:textSize="@dimen/blocked_number_settings_description_text_size"/> +</LinearLayout>
\ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 5fca528e9..29076152b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1066,4 +1066,31 @@ <!-- Label under the name of a spam number in the call log. [CHAR LIMIT=15] --> <string name="spam_number_call_log_label">Spam</string> + + <!-- Title of alert dialog after clicking on Block/report as spam. [CHAR LIMIT=100] --> + <string name="block_report_number_alert_title">Block <xliff:g id="number">%1$s</xliff:g>?</string> + + <!-- Text in alert dialog after clicking on Block/report as spam. [CHAR LIMIT=100] --> + <string name="block_report_number_alert_details">Future calls and voicemails from this number will be blocked.</string> + + <!-- Label for checkbox in the Alert dialog to allow the user to report the number as spam as well. [CHAR LIMIT=30] --> + <string name="checkbox_report_as_spam_action">Report call as spam</string> + + <!-- Text in alert dialog after clicking on Block. [CHAR LIMIT=100] --> + <string name="block_number_alert_details">Future calls and voicemails from this number will be blocked. This call will be reported as spam.</string> + + <!-- Title of alert dialog after clicking on Unblock. [CHAR LIMIT=100] --> + <string name="unblock_report_number_alert_title">Unblock <xliff:g id="number">%1$s</xliff:g>?</string> + + <!-- Text in alert dialog after clicking on Unblock. [CHAR LIMIT=100] --> + <string name="unblock_number_alert_details">This number will be unblocked and reported as not spam. Future calls and voicemails won\'t be identified as spam.</string> + + <!-- Title of alert dialog after clicking on Report as not spam. [CHAR LIMIT=100] --> + <string name="report_not_spam_alert_title">Whitelist <xliff:g id="number">%1$s</xliff:g>?</string> + + <!-- Report not spam number alert dialog button [CHAR LIMIT=32] --> + <string name="report_not_spam_alert_button">Whitelist</string> + + <!-- Text in alert dialog after clicking on Report as not spam. [CHAR LIMIT=100] --> + <string name="report_not_spam_alert_details">Future calls and voicemails from this number won\'t be identified as spam. This number will be reported as not spam.</string> </resources> |