mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
AndroidNetworkContext (base class for ActivityNetworkContext & ServiceNetworkContext) + cookies in SynchroniserService
This commit is contained in:
parent
9e961449d1
commit
9bee7c323d
5 changed files with 86 additions and 27 deletions
|
@ -29,6 +29,7 @@ import android.os.IBinder;
|
|||
import org.json.simple.JSONValue;
|
||||
|
||||
import org.geometerplus.zlibrary.core.network.*;
|
||||
import org.geometerplus.zlibrary.ui.android.network.SQLiteCookieDatabase;
|
||||
import org.geometerplus.fbreader.book.*;
|
||||
import org.geometerplus.android.fbreader.libraryService.BookCollectionShadow;
|
||||
import org.geometerplus.android.fbreader.network.ServiceNetworkContext;
|
||||
|
@ -43,6 +44,7 @@ public class SynchroniserService extends Service implements IBookCollection.List
|
|||
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
SQLiteCookieDatabase.init(this);
|
||||
myCollection.bindToService(this, this);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue