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

Skip to content
Commit 5df43f2f authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Screen Chips] Show device name in stop dialog when screen casting.

Casting to another device can either trigger MediaRouter APIs (if only
audio is being cast) or MediaProjection APIs (if the screen is being
cast). Change Id9710270bafef03d5f0c4e1cece124df8fd59755 showed the device
name in the stop dialog if MediaRouter APIs were used. This change now
also shows the device name in the stop dialog if MediaProjection APIs
are used.

Fixes: 351851835
Bug: 332662551
Flag: com.android.systemui.status_bar_screen_sharing_chips

Test: Cast screen to another device, then tap chip -> verify stop dialog
includes device name
Test: Cast audio to another device, then tap chip -> verify stop dialog
includes device name
Test: Share your screen with another app, then tap chip -> verify stop
dialog includes name of app receiving the share (this verifies that
nothing goes wrong if we couldn't get the device name)
Test: atest MediaProjectionManagerRepositoryTest

Change-Id: I927471aae423d68357baaa3c7691334b58d09585
parent f9e13dbf
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