From 2d7616e25024755a16e75ad4e781156c710ab342 Mon Sep 17 00:00:00 2001 From: xynngh Date: Sat, 26 Sep 2020 22:18:18 +0400 Subject: [PATCH] Add info icon in blacklist editor --- app/src/main/res/drawable/ic_info_24dp.xml | 9 +++++++ .../layout/activity_edit_blacklist_item.xml | 26 +++++++++++++++---- app/src/main/res/values-ru/strings.xml | 3 ++- app/src/main/res/values/strings.xml | 3 ++- 4 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 app/src/main/res/drawable/ic_info_24dp.xml diff --git a/app/src/main/res/drawable/ic_info_24dp.xml b/app/src/main/res/drawable/ic_info_24dp.xml new file mode 100644 index 0000000..7c40797 --- /dev/null +++ b/app/src/main/res/drawable/ic_info_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/activity_edit_blacklist_item.xml b/app/src/main/res/layout/activity_edit_blacklist_item.xml index 995586d..8796b0c 100644 --- a/app/src/main/res/layout/activity_edit_blacklist_item.xml +++ b/app/src/main/res/layout/activity_edit_blacklist_item.xml @@ -55,13 +55,29 @@ android:textAppearance="?android:attr/textAppearanceMedium" tools:text="3 calls, last: Aug 01, 2020 10:10" /> - + android:orientation="horizontal"> + + + + + diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 431df7e..d7c0677 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -145,7 +145,8 @@ Некорректный шаблон Пустой шаблон Введите номер в формате +СТРАНА-НОМЕР (как Android показал бы в списке вызовов). Используйте \"*\" как подстановку для нуля и более цифр и \"#\" для одной цифры. - Звонки от контактов никогда не блокируются (даже если номер совпадает с шаблоном из чёрного списка) + Инфо + Звонки от контактов никогда не блокируются (даже при совпадении с шаблоном) Звонки от контактов могут быть заблокированы, т.к. опция "Доступ к контактам" не включена! Звонки от контактов могут быть заблокированы, т.к. разрешение на доступ к контактам не предоставлено! В чёрном списке diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d221bab..20e61fb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -162,7 +162,8 @@ Incorrect pattern Empty pattern Enter the number in +COUNTRY-NUMBER format (as Android would show in your dialer). Use \"*\" as a wildcard for zero or more digits, and \"#\" for exactly one digit. - Calls from contacts are never blocked (even if the number matches the blacklist pattern) + Info + Calls from contacts are never blocked (even on pattern match) Calls from contacts may be blocked because the \"Use contacts\" option is not enabled! Calls from contacts may be blocked because the \"Contacts\" permission is not granted! In blacklist