File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
app/src/main/java/com/addev/listaspam Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,6 @@ class CallLogAdapter(
278278 } else null
279279 }
280280 } catch (e: Exception ) {
281- Log .e(" getContactName" , " Lookup failed for $phoneNumber " , e)
282281 null
283282 }
284283 }
Original file line number Diff line number Diff line change @@ -292,13 +292,7 @@ class SpamUtils {
292292
293293 val jobs = spamCheckers.map { checker ->
294294 launch {
295- val start = System .currentTimeMillis()
296295 val result = runCatching { checker(number) }.getOrDefault(false )
297- val elapsed = System .currentTimeMillis() - start
298-
299- Logger .getLogger(" SpamUtils" ).info(
300- " Spam checker for $number completed in ${elapsed} ms, result: $result "
301- )
302296
303297 if (result) {
304298 resultChannel.send(true )
@@ -309,14 +303,11 @@ class SpamUtils {
309303 }
310304
311305 val isSpam = try {
312- select< Boolean > {
306+ select {
313307 resultChannel.onReceiveCatching { result ->
314308 result.getOrNull() ? : false
315309 }
316310 onTimeout(timeoutMs) {
317- Logger .getLogger(" SpamUtils" ).warning(
318- " Spam check timed out after ${timeoutMs} ms for $number "
319- )
320311 false
321312 }
322313 }
You can’t perform that action at this time.
0 commit comments