mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
main activity orientation in all dependent activities
Conflicts: src/org/geometerplus/android/fbreader/TOCActivity.java src/org/geometerplus/android/fbreader/library/BookInfoActivity.java
This commit is contained in:
parent
9711842566
commit
e94e59ef5b
18 changed files with 145 additions and 17 deletions
|
@ -101,8 +101,16 @@ public class BookmarksActivity extends TabActivity implements MenuItem.OnMenuIte
|
|||
findViewById(R.id.search_results).setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
OrientationUtil.setOrientation(this, getIntent());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onNewIntent(Intent intent) {
|
||||
OrientationUtil.setOrientation(this, intent);
|
||||
|
||||
if (!Intent.ACTION_SEARCH.equals(intent.getAction())) {
|
||||
return;
|
||||
}
|
||||
|
@ -193,7 +201,7 @@ public class BookmarksActivity extends TabActivity implements MenuItem.OnMenuIte
|
|||
return true;
|
||||
case EDIT_ITEM_ID:
|
||||
final Intent intent = new Intent(this, BookmarkEditActivity.class);
|
||||
startActivityForResult(intent, 1);
|
||||
OrientationUtil.startActivityForResult(this, intent, 1);
|
||||
// TODO: implement
|
||||
return true;
|
||||
case DELETE_ITEM_ID:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue