mirror of https://github.com/koreader/koreader
small change of UIManager:show(): No more automatic refresh
This eliminates the API difference between the extra parameters of UIManager:show() and setDirty(). They work the same now. Note that this also eliminates the automatic refresh that took place before when using show() without refresh options. It always refreshed the full screen, which led to too big refresh regions all over the place. Thus, refresh has now explicitly to be asked for, hopefully encouraging to implement it in the widget that gets shown (and is aware about the screen region it covers). Also add an event that is triggered when a widget is closed: CloseWidget. So a widget can implement "onCloseWidget()" to trigger actions upon closing - most commonly, this is a refresh for the area previously taken by the widget. That way, the widget's user does not have to take measures to ensure that the area is refreshed later.pull/1316/head
parent
2c1eacdbf5
commit
9c4088a3ac
Loading…
Reference in New Issue