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

Commit e2fcd66f authored by Vlad Popa's avatar Vlad Popa
Browse files

CSD: Remove forced logic

This logic causes the audio handler to not remove the callbacks if the
forced flag was not set.

Test: manual log, dumpsys and atest SoundDoseHelperTest
Bug: 271311101
Bug: 271201291
Change-Id: I7467952bcaeaddaabf71e241c2ea387216ef4c18
parent cd847010
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -574,10 +574,8 @@ public class SoundDoseHelper {

    /*package*/ void configureSafeMedia(boolean forced, String caller) {
        int msg = MSG_CONFIGURE_SAFE_MEDIA;
        if (forced) {
            // unforced should not cancel forced configure messages

        mAudioHandler.removeMessages(msg);
        }

        long time = 0;
        if (forced) {