mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Fix message view menu items being present after displaying a message and
going back.
This commit is contained in:
parent
62ee3bb0d6
commit
1d849f6664
@ -906,7 +906,9 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
|
||||
* Set visibility of menu items related to the message view
|
||||
*/
|
||||
|
||||
if (mMessageViewFragment == null || !mMessageViewFragment.isInitialized()) {
|
||||
if (mDisplayMode == DisplayMode.MESSAGE_LIST
|
||||
|| mMessageViewFragment == null
|
||||
|| !mMessageViewFragment.isInitialized()) {
|
||||
menu.findItem(R.id.next_message).setVisible(false);
|
||||
menu.findItem(R.id.previous_message).setVisible(false);
|
||||
menu.findItem(R.id.delete).setVisible(false);
|
||||
@ -1365,6 +1367,7 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
|
||||
mMessageListFragment.setActiveMessage(null);
|
||||
|
||||
showDefaultTitleView();
|
||||
configureMenu(mMenu);
|
||||
}
|
||||
|
||||
private void showMessageView() {
|
||||
@ -1376,6 +1379,7 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
|
||||
mViewSwitcher.showSecondView();
|
||||
|
||||
showMessageTitleView();
|
||||
configureMenu(mMenu);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user