Skip to content

Commit

Permalink
Update MessageWorker.java
Browse files Browse the repository at this point in the history
Updating some logs to debug, From latest build looks like updateMessageReadStatus method is not getting called
  • Loading branch information
arvibuddy authored May 15, 2024
1 parent 1b70be0 commit 5159f88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions android/src/com/volla/launcher/worker/MessageWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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};
Expand All @@ -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++) {

Expand Down

0 comments on commit 5159f88

Please # to comment.