diff options
| author | 2023-03-22 15:16:45 -0700 | |
|---|---|---|
| committer | 2023-03-23 16:42:30 -0700 | |
| commit | 0d4546d1d4407ae215b0bd9962f6bcc10de01754 (patch) | |
| tree | 7fcbf1387173406fc22f07e53419e5d625ba1b86 /api/api_test.go | |
| parent | f666908924280e9bd834b88fa0a87560cef0bcd1 (diff) | |
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
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions