mirror of https://github.com/koreader/koreader
Make FileChooser:choose() work in landscape
Although we are forcing portrait mode upon closing a document and also start up FileChooser in portrait mode, it is best to not rely on this fact within the FileChooser itself. Therefore, I have enhanced FileChooser:choose() method to handle both landscape and portrait modes by removing the assumption that the global variables G_width and G_height will maintain the value they had upon the entry to this function. This supercedes the fix in PR 616 which actually introduced a memory corruption bug by using the stale values of G_height/G_width in some contexts and refreshed value(s) in others.
parent
eb45c49fd6
commit
f0edb9fc55
Loading…
Reference in New Issue