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

Commit 1cd98769 authored by Hoa Hoang's avatar Hoa Hoang Committed by Mike McCreavy
Browse files

bootanim: audioplay: do not start audio thread if it is not allowed

If playSoundsAllowed() returns false, then no need to start new audio
thread.

Bug: 232955344

Test:
Manual - applied this wear-dev change to a local main
and verified in an emulator that when launching
bootanimation (as root), init() early exits with no
negative consequences when BootAnimationUtil.cpp's
playSoundsAllowed() returns false. Also tested when
playSoundsAllowed() returns true, init() continues
(but exits when partWithAudio is null checked).

Change-Id: Ia3ff397ab004b09e60acca1b4ad23c5e76d698cb
(cherry picked from commit 61b667b5bce33ee857a19688a23eef79bdf66a99)
(cherry picked from commit 226331c3b20571fd3dc38bb5da7e0455c4a34f13)
parent 0eb9f586
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