Skip to content

Commit c9aa4f6

Browse files
committed
SpamUtils.kt: README.md: remove monero
1 parent 4e61d40 commit c9aa4f6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ You can also support the project with cryptocurrency:
5151

5252
- **Bitcoin:** `bc1qrcdyq2yjgv5alm9kky2e6vyfhnafn3wgd2gjls`
5353
- **Ethereum:** `0x43b9649985d6789452abe23beb1eb610cee88817`
54-
- **Monero:** `43qZw2PJ6mS6G1RX63qXV6Lah7vpPHrqGDYotLkheL176CNtYei5anhjXgKDkhJMNx16WFGdtCycyCRSppwTyfeSSQHd42T`
5554
- **Solana:** `4qK7eSQemRj85VY9CQp5XHRwX5fNjoSJ1ou4gmqk6jtM`
5655
- **Litecoin:** `ltc1qp6mya23a73n36dc7r0tfwfphn2v53phmhen99j`
5756

app/src/main/java/com/addev/listaspam/util/SpamUtils.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,13 @@ class SpamUtils {
162162
return@launch
163163
}
164164

165-
val isNumberInAgenda = isNumberInAgenda(context, details)
165+
if (details != null) {
166+
val isNumberInAgenda = isNumberInAgenda(details)
166167

167-
// Don't check number if is in contacts
168-
if (isNumberInAgenda) {
169-
return@launch
168+
// Don't check number if is in contacts
169+
if (isNumberInAgenda) {
170+
return@launch
171+
}
170172
}
171173

172174
if (shouldBlockNonContacts(context)) {
@@ -352,7 +354,7 @@ class SpamUtils {
352354
* @return true if the number is found in the agenda (has a contact display name),
353355
* false otherwise
354356
*/
355-
private fun isNumberInAgenda(details): Boolean {
357+
private fun isNumberInAgenda(details: Call.Details): Boolean {
356358
return details.getContactDisplayName() != null
357359
}
358360

0 commit comments

Comments
 (0)