I have an app with a Home screen widget, created with the RemoteViews(Map<SizeF, RemoteViews>)
constructor, so the choice of layout to inflate depends on the widget size. The map has 2 views. This part works OK, but I also need to perform partial updates of this widget using AppWidgetManager#partiallyUpdateAppWidget()
, and this seems to always be ignored.
It does work when I used a single, non-mapped RemoteViews
instance however. I suspect the issue is due to the requirement of partiallyUpdateAppWidget()
that:
This method will be ignored if a widget has not received a full update via
AppWidgetManager#updateAppWidget(int[], RemoteViews)
Presumably the “mapping” RemoteViews
gets the update but not the layout it inflates, so the layout that partiallyUpdateAppWidget()
tries to update isn’t flagged as having been updated, so it is ignored.
Has anyone else encountered this, or found a solution?