[CS] Move KeyguardBottomAreaView's provider to ShadeModule.
This isn't the *best* location for this provider, but it's where it has to be (for now) because that's where NotificationPanelView is provided. Bug: 277762009 Test: manual: verify keyguard bottom area gets re-inflated on font change and still works correctly after font change (lockscreen shortcuts still work, bottom area text updates based on events) Change-Id: Ieb2a3e0af7adac6d470f3c610babafd9fa4cf579
This commit is contained in:
@@ -49,6 +49,7 @@ import com.android.systemui.statusbar.NotificationShelfController
|
||||
import com.android.systemui.statusbar.notification.row.dagger.NotificationShelfComponent
|
||||
import com.android.systemui.statusbar.notification.shelf.ui.viewbinder.NotificationShelfViewBinderWrapperControllerImpl
|
||||
import com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout
|
||||
import com.android.systemui.statusbar.phone.KeyguardBottomAreaView
|
||||
import com.android.systemui.statusbar.phone.StatusIconContainer
|
||||
import com.android.systemui.statusbar.phone.TapAgainView
|
||||
import com.android.systemui.statusbar.policy.BatteryController
|
||||
@@ -165,6 +166,20 @@ abstract class ShadeModule {
|
||||
return notificationShadeWindowView.findViewById(R.id.notification_panel)
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new, unattached [KeyguardBottomAreaView].
|
||||
*
|
||||
* Note that this is explicitly _not_ a singleton, as we want to be able to reinflate it
|
||||
*/
|
||||
@Provides
|
||||
fun providesKeyguardBottomAreaView(
|
||||
npv: NotificationPanelView,
|
||||
layoutInflater: LayoutInflater,
|
||||
): KeyguardBottomAreaView {
|
||||
return layoutInflater.inflate(R.layout.keyguard_bottom_area, npv, false)
|
||||
as KeyguardBottomAreaView
|
||||
}
|
||||
|
||||
@Provides
|
||||
@SysUISingleton
|
||||
fun providesLightRevealScrim(
|
||||
|
||||
@@ -16,22 +16,17 @@
|
||||
|
||||
package com.android.systemui.statusbar.phone.dagger;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
|
||||
import com.android.keyguard.KeyguardUpdateMonitor;
|
||||
import com.android.systemui.R;
|
||||
import com.android.systemui.dagger.qualifiers.Main;
|
||||
import com.android.systemui.dump.DumpManager;
|
||||
import com.android.systemui.flags.FeatureFlags;
|
||||
import com.android.systemui.plugins.statusbar.StatusBarStateController;
|
||||
import com.android.systemui.shade.NotificationPanelView;
|
||||
import com.android.systemui.shade.NotificationPanelViewController;
|
||||
import com.android.systemui.shade.ShadeExpansionStateManager;
|
||||
import com.android.systemui.shade.ShadeViewController;
|
||||
import com.android.systemui.statusbar.CommandQueue;
|
||||
import com.android.systemui.statusbar.OperatorNameViewController;
|
||||
import com.android.systemui.statusbar.events.SystemStatusAnimationScheduler;
|
||||
import com.android.systemui.statusbar.phone.KeyguardBottomAreaView;
|
||||
import com.android.systemui.statusbar.phone.NotificationIconAreaController;
|
||||
import com.android.systemui.statusbar.phone.StatusBarBoundsProvider;
|
||||
import com.android.systemui.statusbar.phone.StatusBarHideIconsForBouncerManager;
|
||||
@@ -145,17 +140,4 @@ public abstract class StatusBarViewModule {
|
||||
statusBarWindowStateController,
|
||||
keyguardUpdateMonitor);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new, unattached {@link KeyguardBottomAreaView}.
|
||||
*
|
||||
* Note that this is explicitly _not_ a singleton, as we want to be able to reinflate it
|
||||
*/
|
||||
@Provides
|
||||
public static KeyguardBottomAreaView providesKeyguardBottomAreaView(
|
||||
NotificationPanelView npv, LayoutInflater layoutInflater) {
|
||||
return (KeyguardBottomAreaView) layoutInflater.inflate(R
|
||||
.layout.keyguard_bottom_area, npv, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user