Enhance dagger usage in UnfoldSharedModule
UnfoldTransitionProgressProvider is used in sysui and in other places that don't use dagger (e.g. Launcher). However, we want to use dagger for all unfold transition related classes. The solution in this cl is to create FoldSharedComponent. If an app that doesn't use dagger need UnfoldTransitionProgressProvider (or other shared classes), it can create the component with the factory, and get those object (now created by dagger, previously manually created). If the app uses dagger, UnfoldSharedModule should be used instead. The external interface is not changed in this cl: createUnfoldTransitionProgressProvider is left as it was before, therefore launcher doesn't require any change and continues to work as before. Test: atest com.android.systemui.unfold Test: Manually tested Bug: 213908821 Change-Id: I22885ec15fed99254405e26ed2fe99a9567625b6
Loading
Please register or sign in to comment