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

Commit ce2ec146 authored by Manasi Navare's avatar Manasi Navare
Browse files

Send the ModeRejected event only if EventRegsitration is set



The modeRejected event sent by Surfaceflinger was consumed by all
the listeners (Display Event Receiver and Choreographer) causing
a crash in Choreographer for this event since dispatchModeRejected()
in Choreographer is not registered.

This patch adds a Event registration flag corresponding to the
mode rejected event and only the listeners where this flag
is set will receive this modeRejected event sent by
SF. SO in this case only DER receives this event.

Test: manual test
Bug: 409640463
Flag: EXEMPT bug fix

Change-Id: Id006a175bbf8dc9e1d19d6b42f66783aae9708d9
Signed-off-by: default avatarManasi Navare <navaremanasi@google.com>
parent b15b52de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment