fix TUI
[fanfix.git] / src / be / nikiroo / fanfix / reader / tui / TuiReaderApplication.java
index 85b1abcfb44f7af7419b757f21865b3f4ed8c3d2..2b02dd00060b067a0d44c3d4db9d9304e7577f60 100644 (file)
@@ -66,7 +66,7 @@ class TuiReaderApplication extends TApplication implements Reader {
                        TApplication.BackendType backend) throws Exception {
                super(backend);
                init(reader);
-
+               
                showMain();
                main.setMode(Mode.SOURCE, source);
        }
@@ -82,7 +82,7 @@ class TuiReaderApplication extends TApplication implements Reader {
        }
 
        @Override
-       public Story getStory(Progress pg) {
+       public Story getStory(Progress pg) throws IOException {
                return reader.getStory(pg);
        }
 
@@ -113,7 +113,11 @@ class TuiReaderApplication extends TApplication implements Reader {
 
        @Override
        public void browse(String source) {
-               reader.browse(source);
+               try {
+                       reader.browse(source);
+               } catch (IOException e) {
+                       Instance.getTraceHandler().error(e);
+               }
        }
 
        @Override
@@ -127,14 +131,20 @@ class TuiReaderApplication extends TApplication implements Reader {
        }
 
        @Override
-       public void search(SupportType searchOn, String keywords, int page, int item) throws IOException {
-               reader.search(searchOn, keywords, page, item);
+       public void search(boolean sync) throws IOException {
+               reader.search(sync);
+       }
+
+       @Override
+       public void search(SupportType searchOn, String keywords, int page,
+                       int item, boolean sync) throws IOException {
+               reader.search(searchOn, keywords, page, item, sync);
        }
 
        @Override
        public void searchTag(SupportType searchOn, int page, int item,
-                       Integer... tags) throws IOException {
-               reader.searchTag(searchOn, page, item, tags);
+                       boolean sync, Integer... tags) throws IOException {
+               reader.searchTag(searchOn, page, item, sync, tags);
        }
 
        /**