mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
see previous message
This commit is contained in:
parent
d69bb247ce
commit
b490588501
7 changed files with 13 additions and 71 deletions
|
@ -31,6 +31,7 @@ import android.widget.*;
|
|||
import org.geometerplus.zlibrary.core.resources.ZLResource;
|
||||
import org.geometerplus.zlibrary.core.image.ZLImage;
|
||||
import org.geometerplus.zlibrary.core.image.ZLLoadableImage;
|
||||
import org.geometerplus.zlibrary.core.options.ZLStringOption;
|
||||
|
||||
import org.geometerplus.zlibrary.ui.android.image.ZLAndroidImageData;
|
||||
import org.geometerplus.zlibrary.ui.android.image.ZLAndroidImageManager;
|
||||
|
@ -46,6 +47,8 @@ import org.geometerplus.android.fbreader.tree.ZLAndroidTree;
|
|||
|
||||
abstract class LibraryBaseActivity extends ListActivity {
|
||||
static Library Library;
|
||||
static final ZLStringOption BookSearchPatternOption =
|
||||
new ZLStringOption("BookSearch", "Pattern", "");
|
||||
|
||||
public static final String SELECTED_BOOK_PATH_KEY = "SelectedBookPath";
|
||||
|
||||
|
@ -64,6 +67,12 @@ abstract class LibraryBaseActivity extends ListActivity {
|
|||
FBTree tree = ((LibraryAdapter)getListAdapter()).getItem(position);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onSearchRequested() {
|
||||
startSearch(BookSearchPatternOption.getValue(), true, null, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
protected final class LibraryAdapter extends BaseAdapter {
|
||||
private final List<FBTree> myItems;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue