Skip to content

Commit

Permalink
Merge pull request #229 from HelloVolla/arvibuddy-updateMessageReadSt…
Browse files Browse the repository at this point in the history
…atus-1

Update MessageWorker.java
  • Loading branch information
wurzer authored May 16, 2024
2 parents 7abd667 + 85e2a5b commit ac258de
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 ac258de

Please # to comment.