diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2e31781..e3d3aaa 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -98,6 +98,14 @@ + + + " + text + "")); + } + + private static Spanned fromHtml(String s) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { + return Html.fromHtml(s, Html.FROM_HTML_MODE_LEGACY); + } else { + return fromHtmlLegacy(s); + } + } + + @SuppressWarnings({"deprecation", "RedundantSuppression"}) + private static Spanned fromHtmlLegacy(String s) { + return Html.fromHtml(s); + } + +} diff --git a/app/src/main/java/dummydomain/yetanothercallblocker/MainActivity.java b/app/src/main/java/dummydomain/yetanothercallblocker/MainActivity.java index 82204ef..b788913 100644 --- a/app/src/main/java/dummydomain/yetanothercallblocker/MainActivity.java +++ b/app/src/main/java/dummydomain/yetanothercallblocker/MainActivity.java @@ -280,6 +280,10 @@ public class MainActivity extends AppCompatActivity { startActivity(new Intent(this, SettingsActivity.class)); } + public void onOpenAbout(MenuItem item) { + startActivity(new Intent(this, AboutActivity.class)); + } + private void onCallLogItemClicked(CallLogItemGroup item) { InfoDialogHelper.showDialog(this, item.getItems().get(0).numberInfo, null); } diff --git a/app/src/main/res/drawable/logo.xml b/app/src/main/res/drawable/logo.xml new file mode 100644 index 0000000..0b1a5f0 --- /dev/null +++ b/app/src/main/res/drawable/logo.xml @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml new file mode 100644 index 0000000..72db71f --- /dev/null +++ b/app/src/main/res/layout/activity_about.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/activity_main.xml b/app/src/main/res/menu/activity_main.xml index 4724957..62e0ef8 100644 --- a/app/src/main/res/menu/activity_main.xml +++ b/app/src/main/res/menu/activity_main.xml @@ -41,4 +41,8 @@ android:onClick="onOpenSettings" android:title="@string/open_settings_activity" /> + + \ No newline at end of file diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 23ab8b7..e95b467 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -184,4 +184,21 @@ %1$dч %2$dм %3$dс %1$dм %2$dс %dс + + О приложении + О приложении + v%s + Версия базы: %s + Н/Д + Последняя проверка: %s + никогда + проверяем… + + Без труда блокируйте нежелательные вызовы + Логотип + Домашняя страница проекта + Часто задаваемые вопросы + Перевести приложение на Weblate + Получить поддержку / сообщить о проблеме + Это приложение распространяется под лицензией AGPL-3.0-only. \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6c910db..27b7ef9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -204,4 +204,25 @@ %1$dh %2$dm %3$ds %1$dm %2$ds %ds + + About + About + v%s + Database version: %s + n/a + Last update check: %s + never + checking… + + Block unwanted calls effortlessly + Logo + Project homepage + Frequently Asked Questions + Translate the app on Weblate + Get support / report a problem + This application is licensed under AGPL-3.0-only. + https://gitlab.com/xynngh/YetAnotherCallBlocker + https://gitlab.com/xynngh/YetAnotherCallBlocker/-/blob/master/FAQ.md + https://hosted.weblate.org/engage/yet-another-call-blocker/ + https://gitlab.com/xynngh/YetAnotherCallBlocker/-/issues