mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
ChangeLog has been updated
waiting dialog has been moved from ShowLibraryAction to LibraryTabActivity
This commit is contained in:
parent
d16923ceb0
commit
6ec85ec8ce
3 changed files with 15 additions and 15 deletions
|
@ -27,8 +27,6 @@ import org.geometerplus.fbreader.fbreader.FBAction;
|
|||
import org.geometerplus.fbreader.fbreader.FBReaderApp;
|
||||
import org.geometerplus.fbreader.bookmodel.BookModel;
|
||||
|
||||
import org.geometerplus.android.util.AndroidUtil;
|
||||
|
||||
class ShowLibraryAction extends FBAction {
|
||||
private final FBReader myBaseActivity;
|
||||
|
||||
|
@ -39,15 +37,10 @@ class ShowLibraryAction extends FBAction {
|
|||
|
||||
public void run() {
|
||||
final BookModel model = Reader.Model;
|
||||
Runnable action = new Runnable() {
|
||||
public void run() {
|
||||
Intent intent = new Intent(myBaseActivity.getApplicationContext(), LibraryTabActivity.class);
|
||||
if (model != null && model.Book != null) {
|
||||
intent.putExtra(LibraryTabActivity.CURRENT_BOOK_PATH_KEY, model.Book.File.getPath());
|
||||
}
|
||||
myBaseActivity.startActivity(intent);
|
||||
}
|
||||
};
|
||||
AndroidUtil.wait("loadingBookList", action, myBaseActivity);
|
||||
Intent intent = new Intent(myBaseActivity.getApplicationContext(), LibraryTabActivity.class);
|
||||
if (model != null && model.Book != null) {
|
||||
intent.putExtra(LibraryTabActivity.CURRENT_BOOK_PATH_KEY, model.Book.File.getPath());
|
||||
}
|
||||
myBaseActivity.startActivity(intent);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue