(Map<String, String> fsRoots)
| 631 | }; |
| 632 | |
| 633 | public void initRoots(Map<String, String> fsRoots) |
| 634 | { |
| 635 | mRoot.clear(); |
| 636 | // create recent books dir |
| 637 | addRoot( FileInfo.RECENT_DIR_TAG, R.string.dir_recent_books, false); |
| 638 | |
| 639 | // create system dirs |
| 640 | for (Map.Entry<String, String> entry : fsRoots.entrySet()) |
| 641 | addRoot( entry.getKey(), entry.getValue(), true); |
| 642 | |
| 643 | // create OPDS dir |
| 644 | addOPDSRoot(); |
| 645 | |
| 646 | // create search dir |
| 647 | addSearchRoot(); |
| 648 | |
| 649 | // create books by author root |
| 650 | addAuthorsRoot(); |
| 651 | // create books by series root |
| 652 | addSeriesRoot(); |
| 653 | // create books by title root |
| 654 | addTitleRoot(); |
| 655 | } |
| 656 | |
| 657 | public boolean autoAddRootForFile( File f ) { |
| 658 | File p = f.getParentFile(); |
no test coverage detected