Skip to content

Commit

Permalink
Fix widget width calculation #251
Browse files Browse the repository at this point in the history
  • Loading branch information
premnirmal committed Oct 26, 2021
1 parent 0bdbbdc commit 0c8dc16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ class StockWidget : AppWidgetProvider() {
appWidgetId: Int
): RemoteViews = when {
widgetDataProvider.dataForWidgetId(appWidgetId).widgetSizePref() == 1 -> RemoteViews(context.packageName, R.layout.widget_1x1)
min_width > 750 -> RemoteViews(context.packageName, R.layout.widget_5x1)
min_width > 550 -> RemoteViews(context.packageName, R.layout.widget_4x1)
min_width > 425 -> RemoteViews(context.packageName, R.layout.widget_3x1)
min_width > 850 -> RemoteViews(context.packageName, R.layout.widget_5x1)
min_width > 750 -> RemoteViews(context.packageName, R.layout.widget_4x1)
min_width > 500 -> RemoteViews(context.packageName, R.layout.widget_3x1)
min_width > 250 -> RemoteViews(context.packageName, R.layout.widget_2x1)
else -> RemoteViews(context.packageName, R.layout.widget_1x1)
}
Expand Down
4 changes: 2 additions & 2 deletions app/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
versionName=3.9.757
versionCode=300900757
versionName=3.9.758
versionCode=300900758

0 comments on commit 0c8dc16

Please sign in to comment.