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

Commit 9dc2bd84 authored by Zheng Zhang's avatar Zheng Zhang
Browse files

Set Telecom PendingIntent as FLAG_UPDATE_CURRENT

In some cases, we may need handle the pending intent in more flexible
ways. The old flag FLAG_CANCEL_CURRENT would cause CanceledException.
parent f2910c69
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -517,7 +517,7 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements
            UserHandle userHandle) {
        Intent intent = new Intent(action, data, mContext, TelecomBroadcastReceiver.class);
        intent.putExtra(TelecomBroadcastIntentProcessor.EXTRA_USERHANDLE, userHandle);
        return PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
        return PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
    }

    /**