mirror of https://github.com/koreader/koreader
Two trivial optimizations
1. Comment out re-calculation of parameters to adjust for the case when the user changed screen orientation, because we force portrait mode on document close. I left a comment explaining this, so we can uncomment this code if we choose to not force portrait mode on document close in thefuture. 2. Don't re-sort the list if the file does not exist. This predicts the most likely scenario, namely that the user will choose to delete this stale history entry. And even if he chooses NOT to delete it, placing a stale entry to the top of the list contradicts our logic because the non-existent file was never opened.
parent
722ddc96f9
commit
4bc9f37b49
Loading…
Reference in New Issue