mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
common base activity/adapter for library and network library
This commit is contained in:
parent
2ab9bcf491
commit
7967269bcc
5 changed files with 53 additions and 99 deletions
|
@ -53,8 +53,14 @@ public abstract class BaseActivity extends ListActivity {
|
|||
|
||||
public abstract boolean isTreeSelected(FBTree tree);
|
||||
|
||||
protected boolean OLD_STYLE_FLAG = false;
|
||||
|
||||
@Override
|
||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||
if (OLD_STYLE_FLAG) {
|
||||
return super.onKeyDown(keyCode, event);
|
||||
}
|
||||
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK && myCurrentTree.Parent != null) {
|
||||
final FBTree oldTree = myCurrentTree;
|
||||
openTree(myCurrentTree.Parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue