1
0
Fork 0
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:
Nikolay Pultsin 2010-11-17 20:56:03 +00:00
parent d16923ceb0
commit 6ec85ec8ce
3 changed files with 15 additions and 15 deletions

View file

@ -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);
}
}