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

Commit ac1bad56 authored by Aaron Liu's avatar Aaron Liu
Browse files

Ensure media player shows

Need to add a getter to the isMediaVisible field so that we can read the
value in when we are recomposing.

Bug: 301968149
Test: turn on recording app and play sound and go back to LS
Flag: ACONFIG com.android.systemui.compose_lockscreen DEVELOPMENT
Change-Id: I944d065838d5cef5b3d83ba8f78f38eb4dbfacf7
parent b6e4f098
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.systemui.keyguard.ui.viewmodel
import com.android.systemui.media.controls.domain.pipeline.MediaDataManager
import javax.inject.Inject

class MediaCarouselViewModel @Inject constructor(mediaDataManager: MediaDataManager) {
    val isMediaVisible: Boolean = mediaDataManager.hasActiveMediaOrRecommendation()
class MediaCarouselViewModel @Inject constructor(private val mediaDataManager: MediaDataManager) {
    val isMediaVisible: Boolean
        get() = mediaDataManager.hasActiveMediaOrRecommendation()
}