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

Commit e8b11f8e authored by Honggang Luo's avatar Honggang Luo Committed by Hall Liu
Browse files

Fixed that Call back function didn't work

Call back function on missed call notification didn't work after
switching user from gust to owner. Because UserHandle was saved in
extra when creating the pending intent and it was previous one after
switching user to owner. Fixed to use FLAG_CANCEL_CURRENT.

Test: manual
Bug: 32231072
Change-Id: Id960a963278b304d91c8f236e33ca697fee2fcb9
parent d608fcc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -542,7 +542,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, 0);
        return PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
    }

    /**