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

Commit 99cf2415 authored by George Lin's avatar George Lin
Browse files

Navigate to more lock screen settings (2/2)

Enable the entry to lead to the more lock screen settings screen

Test: Manuallt tested
Fixes: 376090582
Flag: com.android.systemui.shared.new_customization_picker_ui
Change-Id: I5346791374202ad1ac1af8cad82b4159e2599004
parent d1b52e6f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ constructor(private val defaultCustomizationOptionsBinder: DefaultCustomizationO
        colorUpdateViewModel: ColorUpdateViewModel,
        lifecycleOwner: LifecycleOwner,
        navigateToWallpaperCategoriesScreen: (screen: Screen) -> Unit,
        navigateToMoreLockScreenSettingsActivity: () -> Unit,
    ) {
        defaultCustomizationOptionsBinder.bind(
            view,
@@ -79,6 +80,7 @@ constructor(private val defaultCustomizationOptionsBinder: DefaultCustomizationO
            colorUpdateViewModel,
            lifecycleOwner,
            navigateToWallpaperCategoriesScreen,
            navigateToMoreLockScreenSettingsActivity,
        )

        val optionClock =
@@ -104,6 +106,14 @@ constructor(private val defaultCustomizationOptionsBinder: DefaultCustomizationO
                R.id.option_entry_keyguard_quick_affordance_icon_2
            )

        val optionMoreLockScreenSettings =
            lockScreenCustomizationOptionEntries
                .find { it.first == ThemePickerLockCustomizationOption.MORE_LOCK_SCREEN_SETTINGS }
                ?.second
        optionMoreLockScreenSettings?.setOnClickListener {
            navigateToMoreLockScreenSettingsActivity.invoke()
        }

        val optionColors =
            homeScreenCustomizationOptionEntries
                .find { it.first == ThemePickerHomeCustomizationOption.COLORS }