mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
send book & bookmark to BookmarksActivity
This commit is contained in:
parent
9f9632bad2
commit
ddfc7407fa
4 changed files with 25 additions and 16 deletions
|
@ -21,6 +21,7 @@ package org.geometerplus.android.fbreader;
|
|||
|
||||
import android.content.Intent;
|
||||
|
||||
import org.geometerplus.fbreader.book.SerializerUtil;
|
||||
import org.geometerplus.fbreader.fbreader.FBReaderApp;
|
||||
|
||||
class ShowBookmarksAction extends FBAndroidAction {
|
||||
|
@ -37,6 +38,12 @@ class ShowBookmarksAction extends FBAndroidAction {
|
|||
protected void run(Object ... params) {
|
||||
final Intent intent =
|
||||
new Intent(BaseActivity.getApplicationContext(), BookmarksActivity.class);
|
||||
intent.putExtra(
|
||||
FBReader.BOOK_KEY, SerializerUtil.serialize(Reader.Model.Book)
|
||||
);
|
||||
intent.putExtra(
|
||||
FBReader.BOOKMARK_KEY, SerializerUtil.serialize(Reader.createBookmark(20, true))
|
||||
);
|
||||
OrientationUtil.startActivity(BaseActivity, intent);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue