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

Commit b4acceeb authored by Nick Chameyev's avatar Nick Chameyev
Browse files

[Unfold Animation] Expose hinge angle provider interface

Exposes hinge angle provider instance from
the dagger component so the clients could
use it to stop/start the hinge angle
provider (which will subscribe/unsubscribe
from the sensor).

Bug: 258828766
Test: presubmit
Change-Id: Ib3f7d41a1ce95f9d3eca4305d16c7e32eb873d04
parent 4ef4e818
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import com.android.systemui.unfold.dagger.UnfoldSingleThreadBg
import com.android.systemui.unfold.progress.RemoteUnfoldTransitionReceiver
import com.android.systemui.unfold.updates.FoldProvider
import com.android.systemui.unfold.updates.RotationChangeProvider
import com.android.systemui.unfold.updates.hinge.HingeAngleProvider
import com.android.systemui.unfold.updates.screen.ScreenStatusProvider
import com.android.systemui.unfold.util.CurrentActivityTypeProvider
import com.android.systemui.unfold.util.UnfoldTransitionATracePrefix
@@ -67,6 +68,7 @@ interface UnfoldSharedComponent {
    }

    val unfoldTransitionProvider: Optional<UnfoldTransitionProgressProvider>
    val hingeAngleProvider: HingeAngleProvider
    val rotationChangeProvider: RotationChangeProvider
}