Skip to content
Commit 0d4546d1 authored by Felipe Leme's avatar Felipe Leme
Browse files

Fixes Toast.show() for visible background users.

When its caller is a visible background user using a non-ui context
(like the application context), the Toast must be displayed in the
display the user was started visible on.

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

Test: atest NotificationManagerServiceTest

Fixes: 273314058
Bug: 272376728

Change-Id: I0a28d20462900eb0437781ab26d520be824014d1
parent f6669089
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