Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f515be6f authored by Aaron Liu's avatar Aaron Liu Committed by Automerger Merge Worker
Browse files

Merge "Look for the correct lock icon view." into udc-qpr-dev am: 691167d4

parents 70fa12a2 691167d4
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -209,9 +209,15 @@ abstract class ShadeModule {
        @Provides
        @SysUISingleton
        fun providesLockIconView(
            notificationShadeWindowView: NotificationShadeWindowView,
            keyguardRootView: KeyguardRootView,
            notificationPanelView: NotificationPanelView,
            featureFlags: FeatureFlags
        ): LockIconView {
            return notificationShadeWindowView.findViewById(R.id.lock_icon_view)
            if (featureFlags.isEnabled(Flags.MIGRATE_LOCK_ICON)) {
                return keyguardRootView.findViewById(R.id.lock_icon_view)
            } else {
                return notificationPanelView.findViewById(R.id.lock_icon_view)
            }
        }

        // TODO(b/277762009): Only allow this view's controller to inject the view. See above.