@@ -1660,14 +1660,15 @@ object WidgetUpdaterHelper {
1660
1660
if (WidgetUtils .isClockWidget(widgetType)) {
1661
1661
val mAppWidgetManager = AppWidgetManager .getInstance(context)
1662
1662
1663
- val views = RemoteViews (context.packageName, info.widgetLayoutId)
1664
1663
for (appWidgetId in appWidgetIds) {
1665
1664
if (! settingsManager.useFollowGPS() && WidgetUtils .isGPS(appWidgetId)) return
1666
1665
val locationData = getLocation(context, appWidgetId)
1667
1666
1668
1667
// Widget dimensions
1668
+ val views = RemoteViews (context.packageName, info.widgetLayoutId)
1669
1669
val newOptions = mAppWidgetManager.getAppWidgetOptions(appWidgetId)
1670
1670
buildClock(context, info, locationData, views, appWidgetId, newOptions)
1671
+ mAppWidgetManager.partiallyUpdateAppWidget(appWidgetId, views)
1671
1672
}
1672
1673
}
1673
1674
}
@@ -1742,15 +1743,16 @@ object WidgetUpdaterHelper {
1742
1743
1743
1744
if (WidgetUtils .isDateWidget(widgetType)) {
1744
1745
val mAppWidgetManager = AppWidgetManager .getInstance(context)
1745
- val views = RemoteViews (context.packageName, info.widgetLayoutId)
1746
1746
1747
1747
for (appWidgetId in appWidgetIds) {
1748
1748
if (! settingsManager.useFollowGPS() && WidgetUtils .isGPS(appWidgetId)) return
1749
1749
val locationData = getLocation(context, appWidgetId)
1750
1750
1751
1751
// Widget dimensions
1752
+ val views = RemoteViews (context.packageName, info.widgetLayoutId)
1752
1753
val newOptions = mAppWidgetManager.getAppWidgetOptions(appWidgetId)
1753
1754
buildDate(context, info, locationData, views, appWidgetId, newOptions)
1755
+ mAppWidgetManager.partiallyUpdateAppWidget(appWidgetId, views)
1754
1756
}
1755
1757
}
1756
1758
}
0 commit comments