Skip to content

Commit 05cbfcd

Browse files
ralph950412neobuddy89
authored andcommitted
SystemUI: smartspace: refactor dagger
Signed-off-by: Pranav Vashi <[email protected]>
1 parent 996ed66 commit 05cbfcd

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

packages/SystemUI/src/com/android/systemui/dagger/SystemUIModule.java

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
import com.android.systemui.shade.transition.LargeScreenShadeInterpolator;
131131
import com.android.systemui.shade.transition.LargeScreenShadeInterpolatorImpl;
132132
import com.android.systemui.shared.condition.Monitor;
133+
import com.android.systemui.smartspace.config.BcSmartspaceConfigProvider;
133134
import com.android.systemui.smartspace.dagger.SmartspaceModule;
134135
import com.android.systemui.startable.Dependencies;
135136
import com.android.systemui.statusbar.CommandQueue;
@@ -403,7 +404,7 @@ static BackupManager provideBackupManager(@Application Context context) {
403404

404405
@BindsOptionalOf
405406
@Named(SmartspaceModule.GLANCEABLE_HUB_SMARTSPACE_DATA_PLUGIN)
406-
abstract BcSmartspaceDataPlugin optionalGlanceableHubSmartspaceDataPlugin();
407+
abstract BcSmartspaceDataPlugin optionalGlanceableHubBcSmartspaceDataPlugin();
407408

408409
@BindsOptionalOf
409410
@Named(SmartspaceModule.WEATHER_SMARTSPACE_DATA_PLUGIN)
@@ -562,8 +563,7 @@ static KeyguardZenAlarmViewController provideKeyguardZenAlarmViewController(
562563
static KeyguardMediaViewController provideKeyguardMediaViewController(
563564
Context context,
564565
NotificationMediaManager mediaManager,
565-
@Named(SmartspaceModule.GLANCEABLE_HUB_SMARTSPACE_DATA_PLUGIN)
566-
BcSmartspaceDataPlugin plugin,
566+
BcSmartspaceDataPlugin plugin,
567567
UserTracker userTracker,
568568
@Main DelayableExecutor uiExecutor) {
569569
KeyguardMediaViewController controller = new KeyguardMediaViewController(
@@ -572,6 +572,14 @@ static KeyguardMediaViewController provideKeyguardMediaViewController(
572572
return controller;
573573
}
574574

575+
576+
@Provides
577+
@SysUISingleton
578+
static BcSmartspaceConfigProvider provideBcSmartspaceConfigPlugin(
579+
FeatureFlags featureFlags) {
580+
return new BcSmartspaceConfigProvider(featureFlags);
581+
}
582+
575583
@Provides
576584
@SysUISingleton
577585
static BcSmartspaceDataPlugin provideBcSmartspaceDataPlugin() {
@@ -598,16 +606,4 @@ static BcSmartspaceDataPlugin provideGlanceableHubSmartspaceDataPlugin() {
598606
static BcSmartspaceDataPlugin provideWeatherSmartspaceDataPlugin() {
599607
return new WeatherSmartspaceDataProvider();
600608
}
601-
602-
@Provides
603-
@SysUISingleton
604-
static DateSmartspaceDataProvider provideDateSmartspaceDataProvider() {
605-
return new DateSmartspaceDataProvider();
606-
}
607-
608-
@Provides
609-
@SysUISingleton
610-
static WeatherSmartspaceDataProvider provideWeatherSmartspaceDataProvider() {
611-
return new WeatherSmartspaceDataProvider();
612-
}
613609
}

0 commit comments

Comments
 (0)