+16
−4
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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