From 5159f88483a3a7ade2c2132d452a8916983f6aa8 Mon Sep 17 00:00:00 2001 From: arvibuddy <111645029+arvibuddy@users.noreply.github.com> Date: Wed, 15 May 2024 23:19:36 +0530 Subject: [PATCH] Update MessageWorker.java Updating some logs to debug, From latest build looks like updateMessageReadStatus method is not getting called --- android/src/com/volla/launcher/worker/MessageWorker.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/src/com/volla/launcher/worker/MessageWorker.java b/android/src/com/volla/launcher/worker/MessageWorker.java index 57f229b4..dca6463c 100644 --- a/android/src/com/volla/launcher/worker/MessageWorker.java +++ b/android/src/com/volla/launcher/worker/MessageWorker.java @@ -125,6 +125,7 @@ public void run() { } private static void updateMessageHandler(Map message, Activity activity) { + Log.d(TAG, "updateMessageHandler"); Runnable runnable = new Runnable () { public void run() { Looper.prepare(); @@ -145,7 +146,7 @@ static void updateMessageReadStatus(Map message, Activity activity) { threadList.add( threadId ); } for (String thId : threadList) { - Log.d(TAG, "Check messages of therad " + thId); + Log.d(TAG, "Check messages of updateMessageReadStatus " + thId); Uri uriSms = Uri.parse("content://sms/"); String[] projection = {Telephony.Sms._ID, Telephony.Sms.THREAD_ID, Telephony.Sms.BODY, Telephony.Sms.TYPE, Telephony.Sms.DATE, Telephony.Sms.ADDRESS, Telephony.Sms.READ}; @@ -155,7 +156,7 @@ static void updateMessageReadStatus(Map message, Activity activity) { long cutOffTimeStamp = 0; try { Cursor c = activity.getContentResolver().query(uriSms, projection, selection, selectionArgs, null);; - Log.d(TAG, "MessagesCount = " + c.getCount() ); + Log.d(TAG, "MessagesCount updateMessageReadStatus = " + c.getCount() ); if (c.moveToFirst()) { for (int i = 0; i < c.getCount(); i++) {