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

Commit 900f46f6 authored by Sherry Zhou's avatar Sherry Zhou Committed by Android (Google) Code Review
Browse files

Revert "Polish weather clock Move adding weather placeholder to ..."

Revert submission 22391223-polish_weather_clock

Reason for revert: This CL causes a build breakage.  

Reverted changes: /q/submissionid:22391223-polish_weather_clock

Change-Id: Ia5aec9f790218b9cd6139d15c9bf9e8dd35db40c
parent af8561ac
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import android.view.View
import androidx.annotation.ColorInt
import androidx.lifecycle.LifecycleOwner
import com.android.systemui.plugins.ClockController
import com.android.systemui.plugins.WeatherData
import com.android.systemui.shared.clocks.ClockRegistry
import com.android.wallpaper.R
import com.android.wallpaper.util.ScreenSizeCalculator
@@ -95,23 +94,7 @@ class ClockViewFactory(
            activity.resources.getDimensionPixelSize(R.dimen.large_clock_text_size).toFloat() *
                getRatio()
        )
        // Use placeholder for weather clock preview in picker
        controller.events.onWeatherDataChanged(
            WeatherData(
                description = DESCRIPTION_PLACEHODLER,
                state = WEATHERICON_PLACEHOLDER,
                temperature = TEMPERATURE_PLACEHOLDER,
                useCelsius = USE_CELSIUS_PLACEHODLER,
            )
        )
        clockControllers[clockId] = controller
        return controller
    }

    companion object {
        val DESCRIPTION_PLACEHODLER = ""
        val TEMPERATURE_PLACEHOLDER = 58
        val WEATHERICON_PLACEHOLDER = WeatherData.WeatherStateIcon.MOSTLY_SUNNY
        val USE_CELSIUS_PLACEHODLER = false
    }
}