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

Commit 2e054471 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Fix potential ANR in CallLogNotificationsService" into ub-contactsdialer-b-dev

parents 7a78b84e e9fc88c1
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -66,12 +66,6 @@ public class CallLogNotificationsService extends IntentService {
        super("CallLogNotificationsService");
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mVoicemailQueryHandler = new VoicemailQueryHandler(this, getContentResolver());
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        if (intent == null) {
@@ -84,6 +78,9 @@ public class CallLogNotificationsService extends IntentService {
        }

        if (ACTION_MARK_NEW_VOICEMAILS_AS_OLD.equals(intent.getAction())) {
            if (mVoicemailQueryHandler == null) {
                mVoicemailQueryHandler = new VoicemailQueryHandler(this, getContentResolver());
            }
            mVoicemailQueryHandler.markNewVoicemailsAsOld();
        } else if (ACTION_UPDATE_NOTIFICATIONS.equals(intent.getAction())) {
            Uri voicemailUri = (Uri) intent.getParcelableExtra(EXTRA_NEW_VOICEMAIL_URI);