Include SysUIUnfoldComponent only in phone SystemUI
Change Dagger depepdencies structure to add SysUIUnfoldComponent subcomponent only in phone SystemUI modules. - SystemUIModule is included in all variants of SystemUI (e.g. for TV/Chromium/tablets/etc.) - CommonSystemUIUnfoldModule binds optional of Optional<SysUIUnfoldComponent>, so this dependency will be present only if the component of this specific variant has this dependency. - CommonSystemUIUnfoldModule is part of SystemUIModule, so it is also added in all variants of SystemUI. It doesn't actually contain the dependency, it's just a proxy module to unwrap optional dependency from SysUIUnfoldComponent - SysUIUnfoldComponent is provided by SysUIUnfoldModule, SysUIUnfoldModule is only added in the variants where unfold classes might be useful (e.g. phone variant of SystemUI), so this dependency will be present only in these variants of SystemUI Bug: 334100546 Test: presubmit Flag: EXEMPT bugfix Change-Id: I2e1eaee81c68dcb8cc0be6e3d6696495100691a6
Loading
Please register or sign in to comment