hwhw/kindlepdfviewer — pull request #622 by tigran123 (2012-11-20 12:16:56+00:00)
Title: Restore full File Manager functionality to KPV

1. Prior to introduction of the reader-chooser infrastructure we had a very useful feature of browsing (and therefore copying/moving/deleting/renaming/creating) filesystem tree accessing arbitrary files if the user privilege mode is set to any value higher than BEGINNER. This patch restores this functionality by checking the privilege levels in readerchooser and returning CREReader for any file type if there is no other reader associated with it (including files with no extension).

2. The code which determines file type in openFile() is actually unused, so it can be safely removed. Moreover, if the filename passed to openFile() happens to have no extension then this would crash openFile(). The reason this was not noticed before is because no such filename was passed to openFile() ever, but will be after this PR is merged.

3. Don't crash in fileinfo on files with no extension --- treat a file with no extension as crengine-supported txt file.