public void reconstructWidgetViewAsIfPhoneWasRotated ( int appWidgetId ) { WidgetInfo widgetInfo = widgetInfos . get ( appWidgetId ) ; widgetInfo . view = createWidgetView ( widgetInfo . layoutId ) ; widgetInfo . lastRemoteViews . reapply ( context , widgetInfo . view ) ; }
Triggers a reapplication of the most recent set of actions against the widget which is what happens when the phone is rotated . Does not attempt to simulate a change in screen geometry .