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

Commit 8518039b authored by Brad Hinegardner's avatar Brad Hinegardner
Browse files

Force date weather below small clock fallback RTL

For RTL layouts, we should force the date weather
to be below the small clock

Fixes: 424764141
Test: manual
Flag: com.android.systemui.shared.clock_reactive_smartspace_layout
Change-Id: I827d34c927610568f6718580577c9438a978bfcb
parent 472769ea
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.systemui.keyguard.ui.viewmodel

import android.content.Context
import android.content.res.Resources
import android.util.LayoutDirection
import androidx.constraintlayout.helper.widget.Layer
import com.android.keyguard.ClockEventController
import com.android.systemui.common.ui.domain.interactor.ConfigurationInteractor
@@ -256,7 +257,9 @@ constructor(
                    isShadeLayoutWide,
                    configurationValues,
                    currentClock ->
                    if (hasCustomWeatherDataDisplay) {
                    val isRtlLayout = configurationValues.layoutDirection == LayoutDirection.RTL

                    if (hasCustomWeatherDataDisplay || isRtlLayout) {
                        return@combine true
                    }