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:
parent
cc0b6ae074
commit
beff4ef43f
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue