mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -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
|
* 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.next_message).setVisible(false);
|
||||||
menu.findItem(R.id.previous_message).setVisible(false);
|
menu.findItem(R.id.previous_message).setVisible(false);
|
||||||
menu.findItem(R.id.delete).setVisible(false);
|
menu.findItem(R.id.delete).setVisible(false);
|
||||||
@ -1365,6 +1367,7 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
|
|||||||
mMessageListFragment.setActiveMessage(null);
|
mMessageListFragment.setActiveMessage(null);
|
||||||
|
|
||||||
showDefaultTitleView();
|
showDefaultTitleView();
|
||||||
|
configureMenu(mMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showMessageView() {
|
private void showMessageView() {
|
||||||
@ -1376,6 +1379,7 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
|
|||||||
mViewSwitcher.showSecondView();
|
mViewSwitcher.showSecondView();
|
||||||
|
|
||||||
showMessageTitleView();
|
showMessageTitleView();
|
||||||
|
configureMenu(mMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user