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

Commit 9601ecd5 authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

Hides clock from lock screen preview.

In clock settings screen.

Bug: 262924178, 262924623
Test: manually verified that the clock isn't rendering in the lock scren
preview of that screen

Change-Id: I38c2b7d14bcd259950d94ed23ea0d899047319e2
parent 47698608
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import androidx.lifecycle.lifecycleScope
import com.android.customization.module.ThemePickerInjector
import com.android.customization.picker.clock.ui.binder.ClockSettingsBinder
import com.android.customization.picker.clock.ui.viewmodel.ClockSettingsViewModel
import com.android.systemui.shared.clocks.shared.model.ClockPreviewConstants
import com.android.wallpaper.R
import com.android.wallpaper.model.WallpaperColorsViewModel
import com.android.wallpaper.module.InjectorProvider
@@ -101,6 +102,13 @@ class ClockSettingsFragment : AppbarFragment() {
                        onWallpaperColorChanged = { colors ->
                            colorViewModel.setLockWallpaperColors(colors)
                        },
                        initialExtrasProvider = {
                            Bundle().apply {
                                // Hide the clock from the system UI rendered preview so we can
                                // place the carousel on top of it.
                                putBoolean(ClockPreviewConstants.KEY_HIDE_CLOCK, true)
                            }
                        },
                    ),
                lifecycleOwner = this,
                offsetToStart = displayUtils.isOnWallpaperDisplay(activity),