summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2022-01-10 19:56:02 +0100
committer Nicolo' Mazzucato <nicomazz@google.com> 2022-01-13 18:10:01 +0100
commit6fb25a666517964fdb839c90e5050d8a187eba9c (patch)
tree4d5e0c4b3e85ab438c628fe411dbdc761b2bf5c7 /libs/input/PointerController.cpp
parent8fe59ba86d9ba700fa00e2e168c302dd95c0f452 (diff)
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
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions