mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
Library has no static instance since this moment
This commit is contained in:
parent
fa4ca04dc1
commit
017cdb852c
4 changed files with 13 additions and 18 deletions
|
@ -45,6 +45,10 @@ public class LibraryTabActivity extends TabActivity implements MenuItem.OnMenuIt
|
|||
|
||||
private Library myLibrary;
|
||||
|
||||
Library library() {
|
||||
return myLibrary;
|
||||
}
|
||||
|
||||
private ListView createTab(String tag, int viewId, int iconId) {
|
||||
final TabHost host = getTabHost();
|
||||
final String label = myResource.getResource(tag).getValue();
|
||||
|
@ -71,7 +75,7 @@ public class LibraryTabActivity extends TabActivity implements MenuItem.OnMenuIt
|
|||
Thread.setDefaultUncaughtExceptionHandler(new org.geometerplus.zlibrary.ui.android.library.UncaughtExceptionHandler(this));
|
||||
|
||||
if (myLibrary == null) {
|
||||
myLibrary = Library.Instance();
|
||||
myLibrary = new Library();
|
||||
}
|
||||
myLibrary.clear();
|
||||
myLibrary.synchronize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue