diff options
author | Adam Powell <adamp@google.com> | 2010-11-15 16:44:17 -0800 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2010-11-15 16:44:17 -0800 |
commit | 8d12e201626239291fe2c4b31f97f2a14f01dea9 (patch) | |
tree | a81e28eaacefa4cfb867b06a059903e7cf42f3f3 /policy/src | |
parent | 645336a7427afc2613df4648d7c4159ab2ec4b0e (diff) | |
download | frameworks_base-8d12e201626239291fe2c4b31f97f2a14f01dea9.zip frameworks_base-8d12e201626239291fe2c4b31f97f2a14f01dea9.tar.gz frameworks_base-8d12e201626239291fe2c4b31f97f2a14f01dea9.tar.bz2 |
Fix a couple interactions between action bar and options menus
Fix bug 3129937 - Activity.openOptionsMenu not calling onPrepareOptionsMenu
Fix bug 3070720 - actionbar android.R.id.home isn't dispatched to fragments
Change-Id: I4a154941595583cdec7d1dffbeac9c8340781fa0
Diffstat (limited to 'policy/src')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindow.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java index e99b74f..3dd6510 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -411,6 +411,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { public final void openPanel(int featureId, KeyEvent event) { if (featureId == FEATURE_OPTIONS_PANEL && mActionBar != null && mActionBar.isOverflowReserved()) { + // Invalidate the options menu, we want a prepare event that the app can respond to. + invalidatePanelMenu(FEATURE_OPTIONS_PANEL); mActionBar.showOverflowMenu(); } else { openPanel(getPanelState(featureId, true), event); |