You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/feature_widget/src/main/java/com/example/util/simpletimetracker/feature_widget/single/WidgetSingleProvider.kt
Copy file name to clipboardExpand all lines: features/feature_widget/src/main/java/com/example/util/simpletimetracker/feature_widget/statistics/WidgetStatisticsChartProvider.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -209,12 +209,12 @@ class WidgetStatisticsChartProvider : AppWidgetProvider() {
209
209
options:Bundle,
210
210
view:View,
211
211
) {
212
-
val defaultWidth = context.resources.getDimensionPixelSize(R.dimen.record_type_card_width).pxToDp()
213
-
val defaultHeight = context.resources.getDimensionPixelSize(R.dimen.record_type_card_height).pxToDp()
212
+
val defaultWidth = context.resources.getDimensionPixelSize(R.dimen.record_type_card_width)
213
+
val defaultHeight = context.resources.getDimensionPixelSize(R.dimen.record_type_card_height)
214
214
215
-
var width = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH, defaultWidth)
215
+
var width = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH, defaultWidth.pxToDp())
216
216
.dpToPx().takeUnless { it ==0 } ?: defaultWidth
217
-
var height = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT, defaultHeight)
217
+
var height = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT, defaultHeight.pxToDp())
0 commit comments