1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +02:00

better processing of "opds://" urls

This commit is contained in:
Nikolay Pultsin 2014-12-22 02:10:50 +00:00
parent cc0b6ae074
commit beff4ef43f
2 changed files with 5 additions and 1 deletions

View file

@ -135,6 +135,8 @@ public class AddCustomCatalogActivity extends Activity {
final INetworkLink link = NetworkLibrary.Instance().getLinkByUrl(uri.toString());
if (link instanceof ICustomNetworkLink) {
myLink = (ICustomNetworkLink)link;
} else {
openCatalog(uri);
}
}

View file

@ -65,6 +65,8 @@ public abstract class UIUtil {
ourMonitor.notify();
}
} catch (Exception e) {
e.printStackTrace();
ourProgress = null;
}
}
};
@ -94,7 +96,7 @@ public abstract class UIUtil {
final ProgressDialog currentProgress = ourProgress;
new Thread(new Runnable() {
public void run() {
while ((ourProgress == currentProgress) && !ourTaskQueue.isEmpty()) {
while (ourProgress == currentProgress && !ourTaskQueue.isEmpty()) {
Pair p = ourTaskQueue.poll();
p.Action.run();
synchronized (ourMonitor) {