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

Skip to content
Commit 270b766d authored by Felipe Leme's avatar Felipe Leme
Browse files

Fix NMS.enqueueTextToast() for user visibility.

When a visible background user toasts, the toast should be displayed
on the display associated to the user, but currently its shown in the
default display.

This change partially fixes that by blocking the toast - the full fix
(i.e., showing the toast in the right display) will come next...

Test: atest NotificationManagerServiceTest SnoozeHelperTest
Test: atest --user-type secondary_user_on_secondary_display android.widget.cts ToastTest#testShow_whenTextToast,testShow_appContext_whenTextToast
Test: atest android.widget.cts ToastTest#testShow_whenTextToast,testShow_appContext_whenTextToast # to make sure the "normal" case still works

Bug: 273314058

Change-Id: If7c789500460eff822946d24ba093e3b9c7a435c
parent fc10ca01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment