[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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user