Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 815c8415 authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am 4188df71: am ffcffb39: Merge "Update missed calls in background" into lmp-mr1-dev

* commit '4188df71':
  Update missed calls in background
parents 94e292c4 4188df71
Loading
Loading
Loading
Loading
+17 −12
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.UserHandle;
import android.provider.CallLog;
import android.provider.CallLog.Calls;
@@ -91,6 +92,9 @@ class MissedCallNotifier extends CallsManagerListenerBase {

    /** Clears missed call notification and marks the call log's missed calls as read. */
    void clearMissedCalls() {
        AsyncTask.execute(new Runnable() {
            @Override
            public void run() {
                // Clear the list of new missed calls from the call log.
                ContentValues values = new ContentValues();
                values.put(Calls.NEW, 0);
@@ -102,7 +106,8 @@ class MissedCallNotifier extends CallsManagerListenerBase {
                where.append(" = ?");
                mContext.getContentResolver().update(Calls.CONTENT_URI, values, where.toString(),
                        new String[]{ Integer.toString(Calls.MISSED_TYPE) });

            }
        });
        cancelMissedCallNotification();
    }