From 674a467694f2c3673a702edbdad9476a9dbd4233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 10 Jul 2023 14:11:41 +0200 Subject: [PATCH 1/3] Add support for blocking keywords for incoming messages This adds support for filtering incoming messages based on message body by checking if it contains any of the blocked keywords (case insensitive). Regex and patterns are not supported at the moment. NOTE: This does not currently support MMS, only SMS. This closes #33 --- app/src/main/AndroidManifest.xml | 7 + .../ManageBlockedKeywordsActivity.kt | 89 +++++++++++ .../activities/SettingsActivity.kt | 15 ++ .../dialogs/AddBlockedKeywordDialog.kt | 43 +++++ .../dialogs/ManageBlockedKeywordsAdapter.kt | 148 ++++++++++++++++++ .../smsmessenger/helpers/Config.kt | 12 ++ .../smsmessenger/helpers/Constants.kt | 1 + .../smsmessenger/receivers/SmsReceiver.kt | 14 ++ .../activity_manage_blocked_keywords.xml | 67 ++++++++ app/src/main/res/layout/activity_settings.xml | 15 ++ .../res/layout/dialog_add_blocked_keyword.xml | 25 +++ .../layout/item_manage_blocked_keyword.xml | 37 +++++ .../main/res/menu/cab_blocked_keywords.xml | 14 ++ .../res/menu/menu_add_blocked_keyword.xml | 9 ++ app/src/main/res/values-ar/strings.xml | 7 +- app/src/main/res/values-az/strings.xml | 5 + app/src/main/res/values-be/strings.xml | 5 + app/src/main/res/values-bg/strings.xml | 5 + app/src/main/res/values-ca/strings.xml | 7 +- app/src/main/res/values-cr/strings.xml | 5 + app/src/main/res/values-cs/strings.xml | 7 +- app/src/main/res/values-da/strings.xml | 5 + app/src/main/res/values-de/strings.xml | 7 +- app/src/main/res/values-el/strings.xml | 5 + app/src/main/res/values-eo/strings.xml | 5 + app/src/main/res/values-es/strings.xml | 7 +- app/src/main/res/values-et/strings.xml | 7 +- app/src/main/res/values-fi/strings.xml | 7 +- app/src/main/res/values-fr/strings.xml | 7 +- app/src/main/res/values-gl/strings.xml | 7 +- app/src/main/res/values-hi/strings.xml | 5 + app/src/main/res/values-hr/strings.xml | 7 +- app/src/main/res/values-hu/strings.xml | 5 + app/src/main/res/values-in/strings.xml | 5 + app/src/main/res/values-is/strings.xml | 5 + app/src/main/res/values-it/strings.xml | 7 +- app/src/main/res/values-iw/strings.xml | 5 + app/src/main/res/values-ja/strings.xml | 5 + app/src/main/res/values-lt/strings.xml | 5 + app/src/main/res/values-lv/strings.xml | 5 + app/src/main/res/values-mk/strings.xml | 5 + app/src/main/res/values-ml/strings.xml | 5 + app/src/main/res/values-nb-rNO/strings.xml | 7 +- app/src/main/res/values-nl/strings.xml | 7 +- app/src/main/res/values-pa-rPK/strings.xml | 5 + app/src/main/res/values-pl/strings.xml | 7 +- app/src/main/res/values-pt-rBR/strings.xml | 7 +- app/src/main/res/values-pt/strings.xml | 7 +- app/src/main/res/values-ro/strings.xml | 5 + app/src/main/res/values-ru/strings.xml | 7 +- app/src/main/res/values-sk/strings.xml | 5 + app/src/main/res/values-sl/strings.xml | 5 + app/src/main/res/values-sr/strings.xml | 5 + app/src/main/res/values-sv/strings.xml | 7 +- app/src/main/res/values-ta/strings.xml | 5 + app/src/main/res/values-th/strings.xml | 5 + app/src/main/res/values-tr/strings.xml | 7 +- app/src/main/res/values-uk/strings.xml | 7 +- app/src/main/res/values-zh-rCN/strings.xml | 7 +- app/src/main/res/values-zh-rTW/strings.xml | 5 + app/src/main/res/values/strings.xml | 5 + 61 files changed, 752 insertions(+), 21 deletions(-) create mode 100644 app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ManageBlockedKeywordsActivity.kt create mode 100644 app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/AddBlockedKeywordDialog.kt create mode 100644 app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/ManageBlockedKeywordsAdapter.kt create mode 100644 app/src/main/res/layout/activity_manage_blocked_keywords.xml create mode 100644 app/src/main/res/layout/dialog_add_blocked_keyword.xml create mode 100644 app/src/main/res/layout/item_manage_blocked_keyword.xml create mode 100644 app/src/main/res/menu/cab_blocked_keywords.xml create mode 100644 app/src/main/res/menu/menu_add_blocked_keyword.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3820008d..aa49b1c0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -128,6 +128,13 @@ android:label="@string/blocked_numbers" android:parentActivityName=".activities.SettingsActivity" /> + + + when (menuItem.itemId) { + R.id.add_blocked_keyword -> { + addOrEditBlockedKeyword() + true + } + + else -> false + } + } + } + + override fun refreshItems() { + updateBlockedKeywords() + } + + private fun updateBlockedKeywords() { + ensureBackgroundThread { + val blockedKeywords = config.blockedKeywords + runOnUiThread { + ManageBlockedKeywordsAdapter(this, blockedKeywords.toArrayList(), this, manage_blocked_keywords_list) { + addOrEditBlockedKeyword(it as String) + }.apply { + manage_blocked_keywords_list.adapter = this + } + + manage_blocked_keywords_placeholder.beVisibleIf(blockedKeywords.isEmpty()) + manage_blocked_keywords_placeholder_2.beVisibleIf(blockedKeywords.isEmpty()) + } + } + } + + private fun addOrEditBlockedKeyword(keyword: String? = null) { + AddBlockedKeywordDialog(this, keyword) { + updateBlockedKeywords() + } + } +} diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt index d97e67d0..38cc7388 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt @@ -37,6 +37,7 @@ class SettingsActivity : SimpleActivity() { setupUseEnglish() setupLanguage() setupManageBlockedNumbers() + setupManageBlockedKeywords() setupChangeDateTimeFormat() setupFontSize() setupShowCharacterCounter() @@ -126,6 +127,20 @@ class SettingsActivity : SimpleActivity() { } } + private fun setupManageBlockedKeywords() { + settings_manage_blocked_keywords.text = addLockedLabelIfNeeded(R.string.manage_blocked_keywords) + + settings_manage_blocked_keywords_holder.setOnClickListener { + if (isOrWasThankYouInstalled()) { + Intent(this, ManageBlockedKeywordsActivity::class.java).apply { + startActivity(this) + } + } else { + FeatureLockedDialog(this) { } + } + } + } + private fun setupChangeDateTimeFormat() { settings_change_date_time_format_holder.setOnClickListener { ChangeDateTimeFormatDialog(this) { diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/AddBlockedKeywordDialog.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/AddBlockedKeywordDialog.kt new file mode 100644 index 00000000..2f55e791 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/AddBlockedKeywordDialog.kt @@ -0,0 +1,43 @@ +package com.simplemobiletools.smsmessenger.dialogs + +import androidx.appcompat.app.AlertDialog +import com.simplemobiletools.commons.activities.BaseSimpleActivity +import com.simplemobiletools.commons.extensions.getAlertDialogBuilder +import com.simplemobiletools.commons.extensions.setupDialogStuff +import com.simplemobiletools.commons.extensions.showKeyboard +import com.simplemobiletools.commons.extensions.value +import com.simplemobiletools.smsmessenger.R +import com.simplemobiletools.smsmessenger.extensions.config +import kotlinx.android.synthetic.main.dialog_add_blocked_keyword.view.add_blocked_keyword_edittext + +class AddBlockedKeywordDialog(val activity: BaseSimpleActivity, private val originalKeyword: String? = null, val callback: () -> Unit) { + init { + val view = activity.layoutInflater.inflate(R.layout.dialog_add_blocked_keyword, null).apply { + if (originalKeyword != null) { + add_blocked_keyword_edittext.setText(originalKeyword) + } + } + + activity.getAlertDialogBuilder() + .setPositiveButton(R.string.ok, null) + .setNegativeButton(R.string.cancel, null) + .apply { + activity.setupDialogStuff(view, this) { alertDialog -> + alertDialog.showKeyboard(view.add_blocked_keyword_edittext) + alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener { + val newBlockedKeyword = view.add_blocked_keyword_edittext.value + if (originalKeyword != null && newBlockedKeyword != originalKeyword) { + activity.config.removeBlockedKeyword(originalKeyword) + } + + if (newBlockedKeyword.isNotEmpty()) { + activity.config.addBlockedKeyword(newBlockedKeyword) + } + + callback() + alertDialog.dismiss() + } + } + } + } +} diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/ManageBlockedKeywordsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/ManageBlockedKeywordsAdapter.kt new file mode 100644 index 00000000..51c7a855 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/ManageBlockedKeywordsAdapter.kt @@ -0,0 +1,148 @@ +package com.simplemobiletools.smsmessenger.dialogs + +import android.view.* +import android.widget.PopupMenu +import com.simplemobiletools.commons.activities.BaseSimpleActivity +import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter +import com.simplemobiletools.commons.extensions.copyToClipboard +import com.simplemobiletools.commons.extensions.getPopupMenuTheme +import com.simplemobiletools.commons.extensions.getProperTextColor +import com.simplemobiletools.commons.extensions.setupViewBackground +import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener +import com.simplemobiletools.commons.views.MyRecyclerView +import com.simplemobiletools.smsmessenger.R +import com.simplemobiletools.smsmessenger.extensions.config +import kotlinx.android.synthetic.main.item_manage_blocked_keyword.view.manage_blocked_keyword_holder +import kotlinx.android.synthetic.main.item_manage_blocked_keyword.view.manage_blocked_keyword_title +import kotlinx.android.synthetic.main.item_manage_blocked_keyword.view.overflow_menu_anchor +import kotlinx.android.synthetic.main.item_manage_blocked_keyword.view.overflow_menu_icon + +class ManageBlockedKeywordsAdapter( + activity: BaseSimpleActivity, var blockedKeywords: ArrayList, val listener: RefreshRecyclerViewListener?, + recyclerView: MyRecyclerView, itemClick: (Any) -> Unit +) : MyRecyclerViewAdapter(activity, recyclerView, itemClick) { + init { + setupDragListener(true) + } + + override fun getActionMenuId() = R.menu.cab_blocked_keywords + + override fun prepareActionMode(menu: Menu) { + menu.apply { + findItem(R.id.cab_copy_keyword).isVisible = isOneItemSelected() + } + } + + override fun actionItemPressed(id: Int) { + if (selectedKeys.isEmpty()) { + return + } + + when (id) { + R.id.cab_copy_keyword -> copyKeywordToClipboard() + R.id.cab_delete -> deleteSelection() + } + } + + override fun getSelectableItemCount() = blockedKeywords.size + + override fun getIsItemSelectable(position: Int) = true + + override fun getItemSelectionKey(position: Int) = blockedKeywords.getOrNull(position)?.hashCode() + + override fun getItemKeyPosition(key: Int) = blockedKeywords.indexOfFirst { it.hashCode() == key } + + override fun onActionModeCreated() {} + + override fun onActionModeDestroyed() {} + + override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = createViewHolder(R.layout.item_manage_blocked_keyword, parent) + + override fun onBindViewHolder(holder: ViewHolder, position: Int) { + val blockedKeyword = blockedKeywords[position] + holder.bindView(blockedKeyword, true, true) { itemView, _ -> + setupView(itemView, blockedKeyword) + } + bindViewHolder(holder) + } + + override fun getItemCount() = blockedKeywords.size + + private fun getSelectedItems() = blockedKeywords.filter { selectedKeys.contains(it.hashCode()) } + + private fun setupView(view: View, blockedKeyword: String) { + view.apply { + setupViewBackground(activity) + manage_blocked_keyword_holder?.isSelected = selectedKeys.contains(blockedKeyword.hashCode()) + manage_blocked_keyword_title.apply { + text = blockedKeyword + setTextColor(textColor) + } + + overflow_menu_icon.drawable.apply { + mutate() + setTint(activity.getProperTextColor()) + } + + overflow_menu_icon.setOnClickListener { + showPopupMenu(overflow_menu_anchor, blockedKeyword) + } + } + } + + private fun showPopupMenu(view: View, blockedKeyword: String) { + finishActMode() + val theme = activity.getPopupMenuTheme() + val contextTheme = ContextThemeWrapper(activity, theme) + + PopupMenu(contextTheme, view, Gravity.END).apply { + inflate(getActionMenuId()) + setOnMenuItemClickListener { item -> + val blockedKeywordId = blockedKeyword.hashCode() + when (item.itemId) { + R.id.cab_copy_keyword -> { + executeItemMenuOperation(blockedKeywordId) { + copyKeywordToClipboard() + } + } + + R.id.cab_delete -> { + executeItemMenuOperation(blockedKeywordId) { + deleteSelection() + } + } + } + true + } + show() + } + } + + private fun executeItemMenuOperation(blockedKeywordId: Int, callback: () -> Unit) { + selectedKeys.add(blockedKeywordId) + callback() + selectedKeys.remove(blockedKeywordId) + } + + private fun copyKeywordToClipboard() { + val selectedKeyword = getSelectedItems().firstOrNull() ?: return + activity.copyToClipboard(selectedKeyword) + finishActMode() + } + + private fun deleteSelection() { + val deleteBlockedKeywords = HashSet(selectedKeys.size) + val positions = getSelectedItemPositions() + + getSelectedItems().forEach { + deleteBlockedKeywords.add(it) + activity.config.removeBlockedKeyword(it) + } + + blockedKeywords.removeAll(deleteBlockedKeywords) + removeSelectedItems(positions) + if (blockedKeywords.isEmpty()) { + listener?.refreshItems() + } + } +} diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt index b9b5c85b..18859f76 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt @@ -68,6 +68,18 @@ class Config(context: Context) : BaseConfig(context) { pinnedConversations = pinnedConversations.minus(conversations.map { it.threadId.toString() }) } + var blockedKeywords: Set + get() = prefs.getStringSet(BLOCKED_KEYWORDS, HashSet())!! + set(blockedKeywords) = prefs.edit().putStringSet(BLOCKED_KEYWORDS, blockedKeywords).apply() + + fun addBlockedKeyword(keyword: String) { + blockedKeywords = blockedKeywords.plus(keyword) + } + + fun removeBlockedKeyword(keyword: String) { + blockedKeywords = blockedKeywords.minus(keyword) + } + var exportSms: Boolean get() = prefs.getBoolean(EXPORT_SMS, true) set(exportSms) = prefs.edit().putBoolean(EXPORT_SMS, exportSms).apply() diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt index 4db9a2ad..2bbdc2bb 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt @@ -25,6 +25,7 @@ const val SEND_LONG_MESSAGE_MMS = "send_long_message_mms" const val SEND_GROUP_MESSAGE_MMS = "send_group_message_mms" const val MMS_FILE_SIZE_LIMIT = "mms_file_size_limit" const val PINNED_CONVERSATIONS = "pinned_conversations" +const val BLOCKED_KEYWORDS = "blocked_keywords" const val EXPORT_SMS = "export_sms" const val EXPORT_MMS = "export_mms" const val EXPORT_MIME_TYPE = "application/json" diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/SmsReceiver.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/SmsReceiver.kt index d947190e..61450edd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/SmsReceiver.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/SmsReceiver.kt @@ -57,6 +57,10 @@ class SmsReceiver : BroadcastReceiver() { private fun handleMessage( context: Context, address: String, subject: String, body: String, date: Long, read: Int, threadId: Long, type: Int, subscriptionId: Int, status: Int ) { + if (isMessageFilteredOut(context, address, subject, body)) { + return + } + val photoUri = SimpleContactsHelper(context).getPhotoUriFromPhoneNumber(address) val bitmap = context.getNotificationBitmap(photoUri) Handler(Looper.getMainLooper()).post { @@ -106,4 +110,14 @@ class SmsReceiver : BroadcastReceiver() { } } } + + private fun isMessageFilteredOut(context: Context, address: String, subject: String, body: String): Boolean { + for (blockedKeyword in context.config.blockedKeywords) { + if (body.contains(blockedKeyword, ignoreCase = true)) { + return true + } + } + + return false + } } diff --git a/app/src/main/res/layout/activity_manage_blocked_keywords.xml b/app/src/main/res/layout/activity_manage_blocked_keywords.xml new file mode 100644 index 00000000..c5ca8a11 --- /dev/null +++ b/app/src/main/res/layout/activity_manage_blocked_keywords.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index 99dfaa9b..7f7f562e 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -146,6 +146,21 @@ + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/item_manage_blocked_keyword.xml b/app/src/main/res/layout/item_manage_blocked_keyword.xml new file mode 100644 index 00000000..269a6c79 --- /dev/null +++ b/app/src/main/res/layout/item_manage_blocked_keyword.xml @@ -0,0 +1,37 @@ + + + + + + + + + + diff --git a/app/src/main/res/menu/cab_blocked_keywords.xml b/app/src/main/res/menu/cab_blocked_keywords.xml new file mode 100644 index 00000000..6b366308 --- /dev/null +++ b/app/src/main/res/menu/cab_blocked_keywords.xml @@ -0,0 +1,14 @@ + + + + + diff --git a/app/src/main/res/menu/menu_add_blocked_keyword.xml b/app/src/main/res/menu/menu_add_blocked_keyword.xml new file mode 100644 index 00000000..53c85055 --- /dev/null +++ b/app/src/main/res/menu/menu_add_blocked_keyword.xml @@ -0,0 +1,9 @@ + + + + diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index 9c2555fc..df334548 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -77,6 +77,11 @@ %d رسائل + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword رؤية اشعارات شاشة القفل المرسل والرسالة المرسل فقط @@ -119,4 +124,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-az/strings.xml b/app/src/main/res/values-az/strings.xml index 669639ec..49ff6e62 100644 --- a/app/src/main/res/values-az/strings.xml +++ b/app/src/main/res/values-az/strings.xml @@ -65,6 +65,11 @@ %d messages + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sender and message Sender only diff --git a/app/src/main/res/values-be/strings.xml b/app/src/main/res/values-be/strings.xml index 80dabae2..be514ce6 100644 --- a/app/src/main/res/values-be/strings.xml +++ b/app/src/main/res/values-be/strings.xml @@ -71,6 +71,11 @@ %d паведамленняў + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Паказ апавяшчэнняў на экране блакавання Адпраўнік і паведамленне Толькі адпраўнік diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml index 50d6c913..8e3574da 100644 --- a/app/src/main/res/values-bg/strings.xml +++ b/app/src/main/res/values-bg/strings.xml @@ -65,6 +65,11 @@ %d съобщения + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Видимост на известие за съобщение при заключен екран Изпращач и съобщение Само изпращач diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml index 18e938e5..104234c1 100644 --- a/app/src/main/res/values-ca/strings.xml +++ b/app/src/main/res/values-ca/strings.xml @@ -65,6 +65,11 @@ %d missatges + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Visibilitat de notificacions a la pantalla de bloqueig Remitent i missatge Només el remitent @@ -107,4 +112,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-cr/strings.xml b/app/src/main/res/values-cr/strings.xml index 669639ec..49ff6e62 100644 --- a/app/src/main/res/values-cr/strings.xml +++ b/app/src/main/res/values-cr/strings.xml @@ -65,6 +65,11 @@ %d messages + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sender and message Sender only diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 56ee7077..1f4aab79 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -68,6 +68,11 @@ %d zpráv + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Viditelnost upozornění na uzamčené obrazovce Odesílatel a zpráva Pouze odesílatel @@ -110,4 +115,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml index a7b1a837..62713c61 100644 --- a/app/src/main/res/values-da/strings.xml +++ b/app/src/main/res/values-da/strings.xml @@ -65,6 +65,11 @@ %d beskeder + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Synlighed af meddelelse på låseskærmen Afsender og meddelelse Kun afsender diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index dd571c63..ede1c631 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -65,6 +65,11 @@ %d Nachrichten + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Sichtbarkeit von Benachrichtigungen auf dem Sperrbildschirm Absender und Nachricht Nur Absender @@ -107,4 +112,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index 5e613921..b2c559e9 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -65,6 +65,11 @@ %d μηνύματα + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Εμφάνιση ειδοπ/σεων σε Κλειδωμένη οθόνη Αποστολέας και μήνυμα Αποστολέας μόνο diff --git a/app/src/main/res/values-eo/strings.xml b/app/src/main/res/values-eo/strings.xml index 1f3ce244..47cc5e04 100644 --- a/app/src/main/res/values-eo/strings.xml +++ b/app/src/main/res/values-eo/strings.xml @@ -65,6 +65,11 @@ %d mesaĝoj + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sendinto kaj mesaĝo Nur sendinto diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index f4b25568..49d4c418 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -68,6 +68,11 @@ %d mensajes + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Visibilidad de las notificaciones en la pantalla de bloqueo Remitente y mensaje Solamente el remitente @@ -110,4 +115,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-et/strings.xml b/app/src/main/res/values-et/strings.xml index d23562ae..a9eb99ef 100644 --- a/app/src/main/res/values-et/strings.xml +++ b/app/src/main/res/values-et/strings.xml @@ -65,6 +65,11 @@ %d sõnumeid + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Teavituse nähtavus lukustusvaates Saatja ja sõnum Ainult saatja @@ -107,4 +112,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 5912ef49..78ecb0be 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -65,6 +65,11 @@ %d viestiä + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lukitusnäytön ilmoitusten näkyvyys Lähettäjä ja viesti Vain lähettäjä @@ -107,4 +112,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 361ffcd5..19607f03 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -68,6 +68,11 @@ %d messages + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Visibilité des notifications sur l\'écran de verrouillage Expéditeur et message Expéditeur uniquement @@ -110,4 +115,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-gl/strings.xml b/app/src/main/res/values-gl/strings.xml index 135b326d..8446a467 100644 --- a/app/src/main/res/values-gl/strings.xml +++ b/app/src/main/res/values-gl/strings.xml @@ -65,6 +65,11 @@ %d mensaxes + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Visibilidade das notificacións na pantalla de bloqueo Remitente e mensaxe Só remitente @@ -107,4 +112,4 @@ Non atopaches algunhas cadeas? Hai máis en https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml index 669639ec..49ff6e62 100644 --- a/app/src/main/res/values-hi/strings.xml +++ b/app/src/main/res/values-hi/strings.xml @@ -65,6 +65,11 @@ %d messages + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sender and message Sender only diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index 4adf51bd..21e88f69 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -68,6 +68,11 @@ %d poruka + Riječ + Blokirane riječi + Upravljanje blokiranim riječima + Ne blokirate niti jednu riječ. Ovdje možete dodati riječi kako biste blokirali poruke koje ih sadrže. + Dodaj blokiranu riječ Zaključaj vidljivost ekranskih obavijesti Pošiljatelj u poruka Samo pošiljatelj @@ -110,4 +115,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 5d03b980..ab34f397 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -65,6 +65,11 @@ %d üzeneteket + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Értesítés láthatósága zárolt képernyőnél Feladó és üzenet Csak a feladó diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml index dd1e2656..4ef6d665 100644 --- a/app/src/main/res/values-in/strings.xml +++ b/app/src/main/res/values-in/strings.xml @@ -62,6 +62,11 @@ %d pesan + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Keterlihatan notifikasi layar kunci Pengirim dan pesan Hanya pengirim diff --git a/app/src/main/res/values-is/strings.xml b/app/src/main/res/values-is/strings.xml index 5b0d3463..c7ac4b67 100644 --- a/app/src/main/res/values-is/strings.xml +++ b/app/src/main/res/values-is/strings.xml @@ -65,6 +65,11 @@ %d messages + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sender and message Sender only diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index f7e8ea3a..3449ba20 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -68,6 +68,11 @@ %d messaggi + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Visibilità schermata di blocco Mittente e messaggio Solo mittente @@ -110,4 +115,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml index 895a9030..92792678 100644 --- a/app/src/main/res/values-iw/strings.xml +++ b/app/src/main/res/values-iw/strings.xml @@ -71,6 +71,11 @@ %d הודעות + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword נראות התראות מסך נעילה שולח והודעה השולח בלבד diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index b9a84b7b..7913c382 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -62,6 +62,11 @@ %d 件のメッセージ + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword ロック画面の通知表示 差出人とメッセージ 差出人のみ diff --git a/app/src/main/res/values-lt/strings.xml b/app/src/main/res/values-lt/strings.xml index 3d01d8c4..39e79dda 100644 --- a/app/src/main/res/values-lt/strings.xml +++ b/app/src/main/res/values-lt/strings.xml @@ -67,6 +67,11 @@ %d žinutės + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Užrakinto ekrano pranešimų matomumas Siuntėjas ir pranešimas Tik siuntėjas diff --git a/app/src/main/res/values-lv/strings.xml b/app/src/main/res/values-lv/strings.xml index 76c5d375..6aa0a4f7 100644 --- a/app/src/main/res/values-lv/strings.xml +++ b/app/src/main/res/values-lv/strings.xml @@ -68,6 +68,11 @@ %d messages + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sender and message Sender only diff --git a/app/src/main/res/values-mk/strings.xml b/app/src/main/res/values-mk/strings.xml index 669639ec..49ff6e62 100644 --- a/app/src/main/res/values-mk/strings.xml +++ b/app/src/main/res/values-mk/strings.xml @@ -65,6 +65,11 @@ %d messages + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sender and message Sender only diff --git a/app/src/main/res/values-ml/strings.xml b/app/src/main/res/values-ml/strings.xml index c78c857a..aefd7c6e 100644 --- a/app/src/main/res/values-ml/strings.xml +++ b/app/src/main/res/values-ml/strings.xml @@ -65,6 +65,11 @@ %d സന്ദേശങ്ങൾ + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword ലോക്ക് സ്ക്രീൻ അറിയിപ്പ് ദൃശ്യപരത അയച്ചയാളും സന്ദേശവും അയയ്ക്കുന്നയാൾ മാത്രം diff --git a/app/src/main/res/values-nb-rNO/strings.xml b/app/src/main/res/values-nb-rNO/strings.xml index 9157790c..aa5e3872 100644 --- a/app/src/main/res/values-nb-rNO/strings.xml +++ b/app/src/main/res/values-nb-rNO/strings.xml @@ -65,6 +65,11 @@ %d meldinger + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Synlighet for låseskjermvarsling Avsender og melding Kun avsender @@ -107,4 +112,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 44f2cf5d..6f007467 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -65,6 +65,11 @@ %d berichten + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Meldingen op vergrendelscherm Afzender en bericht Alleen afzender @@ -107,4 +112,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-pa-rPK/strings.xml b/app/src/main/res/values-pa-rPK/strings.xml index 46584fdf..cdad2c36 100644 --- a/app/src/main/res/values-pa-rPK/strings.xml +++ b/app/src/main/res/values-pa-rPK/strings.xml @@ -65,6 +65,11 @@ %d سنیہے + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility بھیجݨ والا تے سنیہا صرف بھیجݨ والا diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 8d26cff7..72d22181 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -71,6 +71,11 @@ %d wiadomości + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Widoczność powiadomień na ekranie blokady Nadawca i treść Tylko nadawca @@ -113,4 +118,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 372f162d..1b290083 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -68,6 +68,11 @@ %d mensagens + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Visibilidade de notificação na tela de bloqueio Remetente e mensagem Apenas remetente @@ -110,4 +115,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index dac33dd8..54e9afb0 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -68,6 +68,11 @@ %d mensagens + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Notificação no ecrã de bloqueio Remetente e mensagem Apenas remetente @@ -110,4 +115,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml index d32f3591..4fbc1fa0 100644 --- a/app/src/main/res/values-ro/strings.xml +++ b/app/src/main/res/values-ro/strings.xml @@ -68,6 +68,11 @@ %d mesaje + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Vizibilitatea notificării pe ecranul de blocare Expeditor şi mesaj Doar expeditorul diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 3371657d..73a4031e 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -71,6 +71,11 @@ %d сообщений + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Отображение уведомлений на экране блокировки Отправитель и сообщение Только отправитель @@ -113,4 +118,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index b2f9477e..4a955f02 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -68,6 +68,11 @@ %d správ + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Viditeľnosť pripomienky na uzavretej obrazovke Odosielateľ a správa Iba odosielateľ diff --git a/app/src/main/res/values-sl/strings.xml b/app/src/main/res/values-sl/strings.xml index bc55f5fc..49ae2459 100644 --- a/app/src/main/res/values-sl/strings.xml +++ b/app/src/main/res/values-sl/strings.xml @@ -71,6 +71,11 @@ %d sporočil + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Vidnost obvestil na zaklenjenem zaslonu Pošiljatelj in sporočilo Samo pošiljatelj diff --git a/app/src/main/res/values-sr/strings.xml b/app/src/main/res/values-sr/strings.xml index 771e9cc0..42e48f80 100644 --- a/app/src/main/res/values-sr/strings.xml +++ b/app/src/main/res/values-sr/strings.xml @@ -68,6 +68,11 @@ %d порукe + Ријеч + Блокиране ријечи + Управљање блокираним ријечима + Не блокирате ни једну ријеч. Овдје можете додати ријечи како бисте блокирали све поруке које их садрже. + Додај блокирану ријеч. Видљивост обавештења на закључаном екрану Пошиљалац и порука Само пошиљалац diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 5a722d79..29361694 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -65,6 +65,11 @@ %d meddelanden + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Synlighet för aviseringar på låsskärmen Avsändare och meddelande Endast avsändare @@ -107,4 +112,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-ta/strings.xml b/app/src/main/res/values-ta/strings.xml index 1029c6d4..af5b44b2 100644 --- a/app/src/main/res/values-ta/strings.xml +++ b/app/src/main/res/values-ta/strings.xml @@ -65,6 +65,11 @@ %d செய்திகள் + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword பூட்டுத் திரை அறிவிப்புத் தெரிவுநிலை அனுப்புநர் மற்றும் செய்தி அனுப்புநர் மட்டும் diff --git a/app/src/main/res/values-th/strings.xml b/app/src/main/res/values-th/strings.xml index 9a1916d2..299197dc 100644 --- a/app/src/main/res/values-th/strings.xml +++ b/app/src/main/res/values-th/strings.xml @@ -62,6 +62,11 @@ %d message + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sender and message Sender only diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 650aa34a..ba2a34dc 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -65,6 +65,11 @@ %d ileti + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Kilit ekranı bildirim görünürlüğü Gönderen ve ileti Yalnızca gönderen @@ -107,4 +112,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index 734c22a2..0990b3ae 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -71,6 +71,11 @@ %d повідомлень + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Видимість сповіщень на екрані блокування Відправник і повідомлення Лише відправник @@ -113,4 +118,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 6a035913..ce14698a 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -62,6 +62,11 @@ %d 个消息 + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword 锁屏通知可见性 发信人和消息 仅发信人 @@ -104,4 +109,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 012d4194..8ffd4358 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -62,6 +62,11 @@ %d 則訊息 + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword 鎖定畫面通知顯示 Sender and message Sender only diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0e2a271f..1a3574e0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -65,6 +65,11 @@ %d messages + Keyword + Blocked keywords + Manage blocked keywords + You are not blocking any keywords. You may add keywords here to block all messages containing them. + Add a blocked keyword Lock screen notification visibility Sender and message Sender only From daea2d2e5df497b6d10c42c6c32e3e1fc2ac49be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 10 Jul 2023 17:00:32 +0200 Subject: [PATCH 2/3] Remove unused address and subject from message filter in SmsReceiver --- .../simplemobiletools/smsmessenger/receivers/SmsReceiver.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/SmsReceiver.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/SmsReceiver.kt index 61450edd..5e9bc40e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/SmsReceiver.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/SmsReceiver.kt @@ -57,7 +57,7 @@ class SmsReceiver : BroadcastReceiver() { private fun handleMessage( context: Context, address: String, subject: String, body: String, date: Long, read: Int, threadId: Long, type: Int, subscriptionId: Int, status: Int ) { - if (isMessageFilteredOut(context, address, subject, body)) { + if (isMessageFilteredOut(context, body)) { return } @@ -111,7 +111,7 @@ class SmsReceiver : BroadcastReceiver() { } } - private fun isMessageFilteredOut(context: Context, address: String, subject: String, body: String): Boolean { + private fun isMessageFilteredOut(context: Context, body: String): Boolean { for (blockedKeyword in context.config.blockedKeywords) { if (body.contains(blockedKeyword, ignoreCase = true)) { return true From b49643562be45e9c9a00db59750633d1b3f0fcd7 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 10 Jul 2023 20:19:33 +0200 Subject: [PATCH 3/3] updating the slovak translation --- app/src/main/res/values-sk/strings.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index 4a955f02..33c4beb5 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -68,11 +68,11 @@ %d správ - Keyword - Blocked keywords - Manage blocked keywords - You are not blocking any keywords. You may add keywords here to block all messages containing them. - Add a blocked keyword + Kľúčové slovo + Blokované kľúčové slová + Spravovať blokované kľúčové slová + Nie sú blokované žiadne kľúčové slová. Môžete nejaké pridať, tým zablokujete všetky správy, ktoré tieto slova budú obsahovať. + Pridať blokované kľúčové slovo Viditeľnosť pripomienky na uzavretej obrazovke Odosielateľ a správa Iba odosielateľ