mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
Catalog loading changes
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1614 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
c363a06058
commit
06b2ffc2bc
7 changed files with 14 additions and 66 deletions
|
@ -72,12 +72,6 @@ abstract class ItemsLoadingRunnable implements Runnable {
|
|||
}
|
||||
}
|
||||
|
||||
private boolean isLoadingInterruptRequested() {
|
||||
synchronized (myInterruptLock) {
|
||||
return myInterruptRequested;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public ItemsLoadingRunnable(ItemsLoadingHandler handler) {
|
||||
this(handler, 1000, 500);
|
||||
|
@ -113,9 +107,6 @@ abstract class ItemsLoadingRunnable implements Runnable {
|
|||
myUpdateTime = now + UpdateInterval;
|
||||
}
|
||||
}
|
||||
public boolean requestInterrupt() {
|
||||
return isLoadingInterruptRequested() || myItemsNumber >= ItemsLimit;
|
||||
}
|
||||
public boolean confirmInterrupt() {
|
||||
return confirmInterruptLoading() || myItemsNumber >= ItemsLimit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue