diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-04-21 16:48:07 +0800 |
---|---|---|
committer | Adnan <adnan@cyngn.com> | 2014-09-03 15:41:22 -0700 |
commit | d0ae28c5ffbf2516f656d4ba1c78c2611ea9ab73 (patch) | |
tree | f0399936a79e89a3d53105ab65054ba38b5cb60a | |
parent | 32cc6fff097b164365de2b30f4c1d5ddbf67abb2 (diff) | |
download | android_packages_apps_UnifiedEmail-d0ae28c5ffbf2516f656d4ba1c78c2611ea9ab73.tar.gz android_packages_apps_UnifiedEmail-d0ae28c5ffbf2516f656d4ba1c78c2611ea9ab73.tar.bz2 android_packages_apps_UnifiedEmail-d0ae28c5ffbf2516f656d4ba1c78c2611ea9ab73.zip |
Email: Update the menu after the folder is changed
Since the supported options vary with different mailboxes and folders,
the option menu should changes with the folder. But before the folder
changing is finished, the menu is already prepared. So if the user
tries to click a non-supported menu option item, an exception will be
thrown.
Re-prepare the option menu after the folder is changed.
CRs-fixed: 650798
Change-Id: I931b484e299ed79e38f5651fd57e97f4d7b7253a
-rw-r--r-- | src/com/android/mail/ui/MailActionBarView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/mail/ui/MailActionBarView.java b/src/com/android/mail/ui/MailActionBarView.java index c809ec7bb..531af82ef 100644 --- a/src/com/android/mail/ui/MailActionBarView.java +++ b/src/com/android/mail/ui/MailActionBarView.java @@ -751,6 +751,8 @@ public class MailActionBarView extends LinearLayout implements ViewMode.ModeChan if (changingFolders && !ConversationListContext.isSearchResult(listContext)) { closeSearchField(); } + + mActivity.invalidateOptionsMenu(); } @Override |