Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update MessageWorker.java class for some logs #228

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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