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());
|
final INetworkLink link = NetworkLibrary.Instance().getLinkByUrl(uri.toString());
|
||||||
if (link instanceof ICustomNetworkLink) {
|
if (link instanceof ICustomNetworkLink) {
|
||||||
myLink = (ICustomNetworkLink)link;
|
myLink = (ICustomNetworkLink)link;
|
||||||
|
} else {
|
||||||
|
openCatalog(uri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,8 @@ public abstract class UIUtil {
|
||||||
ourMonitor.notify();
|
ourMonitor.notify();
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
ourProgress = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -94,7 +96,7 @@ public abstract class UIUtil {
|
||||||
final ProgressDialog currentProgress = ourProgress;
|
final ProgressDialog currentProgress = ourProgress;
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
while ((ourProgress == currentProgress) && !ourTaskQueue.isEmpty()) {
|
while (ourProgress == currentProgress && !ourTaskQueue.isEmpty()) {
|
||||||
Pair p = ourTaskQueue.poll();
|
Pair p = ourTaskQueue.poll();
|
||||||
p.Action.run();
|
p.Action.run();
|
||||||
synchronized (ourMonitor) {
|
synchronized (ourMonitor) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue