mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
Ongoing Notifications for catalogs loading and network search have been removed
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1388 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
6a3ae4f261
commit
0dfa832205
6 changed files with 12 additions and 107 deletions
|
@ -28,11 +28,6 @@ import org.geometerplus.fbreader.network.NetworkLibraryItem;
|
|||
|
||||
abstract class ItemsLoadingRunnable implements Runnable {
|
||||
|
||||
public static final int CATALOG_LOADING = 0;
|
||||
public static final int NETWORK_SEARCH = 1;
|
||||
|
||||
public final int Type;
|
||||
|
||||
private final ItemsLoadingHandler myHandler;
|
||||
|
||||
private final long myUpdateInterval; // in milliseconds
|
||||
|
@ -42,7 +37,6 @@ abstract class ItemsLoadingRunnable implements Runnable {
|
|||
private boolean myInterruptConfirmed;
|
||||
private Object myInterruptLock = new Object();
|
||||
|
||||
|
||||
private boolean myFinished;
|
||||
private Handler myFinishedHandler;
|
||||
private Object myFinishedLock = new Object();
|
||||
|
@ -79,21 +73,19 @@ abstract class ItemsLoadingRunnable implements Runnable {
|
|||
}
|
||||
|
||||
|
||||
public ItemsLoadingRunnable(ItemsLoadingHandler handler, int type) {
|
||||
this(handler, type, 1000, 500);
|
||||
public ItemsLoadingRunnable(ItemsLoadingHandler handler) {
|
||||
this(handler, 1000, 500);
|
||||
}
|
||||
|
||||
public ItemsLoadingRunnable(ItemsLoadingHandler handler, int type, long updateIntervalMillis, int itemsLimit) {
|
||||
public ItemsLoadingRunnable(ItemsLoadingHandler handler, long updateIntervalMillis, int itemsLimit) {
|
||||
myHandler = handler;
|
||||
myUpdateInterval = updateIntervalMillis;
|
||||
myItemsLimit = itemsLimit;
|
||||
Type = type;
|
||||
}
|
||||
|
||||
public abstract String doBefore();
|
||||
public abstract String doLoading(NetworkOperationData.OnNewItemListener doWithListener);
|
||||
|
||||
public abstract int getNotificationId();
|
||||
public abstract String getResourceKey();
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue