Open udoy-touhid opened 1 year ago
Does this object creation is needed each time inside the Widget or we can move it out to class level? I wanted to create a PR out of this. But wanted to discuss first.
val supportedSizes = listOf( SizeFCompat(180.0f, 110.0f), SizeFCompat(270.0f, 110.0f), SizeFCompat(270.0f, 280.0f) )
https://github.com/android/user-interface-samples/blob/main/AppWidget/app/src/main/java/com/example/android/appwidget/rv/weather/WeatherForecastAppWidget.kt
Does this object creation is needed each time inside the Widget or we can move it out to class level? I wanted to create a PR out of this. But wanted to discuss first.
https://github.com/android/user-interface-samples/blob/main/AppWidget/app/src/main/java/com/example/android/appwidget/rv/weather/WeatherForecastAppWidget.kt