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
This commit is contained in:
Vlad Popa
2023-03-13 11:38:49 +01:00
parent cd8470103f
commit e2fcd66f5f

View File

@@ -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);
}
mAudioHandler.removeMessages(msg);
long time = 0;
if (forced) {