TUI: update (most menu functions working)
[fanfix.git] / src / be / nikiroo / fanfix / reader / TuiReader.java
index 8456da3f29d1b02ad0f05958c774925a81d443de..c71cf95f5be244914eda25cd46e4d69493452852 100644 (file)
@@ -1,12 +1,10 @@
 package be.nikiroo.fanfix.reader;
 
 import java.io.IOException;
-import java.util.List;
 
 import jexer.TApplication;
 import jexer.TApplication.BackendType;
 import be.nikiroo.fanfix.Instance;
-import be.nikiroo.fanfix.data.MetaData;
 
 /**
  * This {@link Reader}is based upon the TUI widget library 'jexer'
@@ -49,6 +47,7 @@ class TuiReader extends BasicReader {
                return backendType;
        }
 
+       @Override
        public void read() throws IOException {
                try {
                        TuiReaderApplication app = new TuiReaderApplication(this,
@@ -59,10 +58,10 @@ class TuiReader extends BasicReader {
                }
        }
 
+       @Override
        public void browse(String source) {
-               List<MetaData> metas = getLibrary().getListBySource(source);
                try {
-                       TuiReaderApplication app = new TuiReaderApplication(metas, this,
+                       TuiReaderApplication app = new TuiReaderApplication(this, source,
                                        guessBackendType());
                        new Thread(app).start();
                } catch (Exception e) {