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

Skip to content
Commit 74f313c9 authored by dakinola's avatar dakinola
Browse files

Ensure that MEDIA_PROJECTION_STATE_CANCELLED is only emitted when actually cancelling set up

Discovered that we were emiting an atom with MEDIA_PROJECTION_STATE_CANCELLED every time we transition from the Permission Dialog, even if it is an intended transition like to start capture or to open the app selector. Added a small boolean flag so now we only emit an atom with MEDIA_PROJECTION_STATE_CANCELLED when we are cancelling the media projection set up (i.e. pressing the cancel button or clicking away from the dialog)

Bug: 237527771
Flag: None
Test: atest CtsStatsdAtomHostTestCases:MediaProjectionAtomsTests
Test: atest ScreenRecordPermissionDialogDelegateTest
Change-Id: Idde4a9f609811e0fbb5f5a9fe0cca03b8451f2e3
parent f58571ee
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