Call invalidateOptionMenu() on onNewIntent()
CALL intent is often used by the other apps or CallLog screen to request
dialpad screen (DialpadFragment), at which we should clean up previous menu
states prepared by CallLog or Favorites tabs.
Bug: 5148698
Change-Id: I4cee5a3abc92805353bf0a53fe68c062124cbac3
diff --git a/src/com/android/contacts/activities/DialtactsActivity.java b/src/com/android/contacts/activities/DialtactsActivity.java
index 13ce317..335503b 100644
--- a/src/com/android/contacts/activities/DialtactsActivity.java
+++ b/src/com/android/contacts/activities/DialtactsActivity.java
@@ -552,6 +552,7 @@
Log.e(TAG, "DialpadFragment isn't ready yet when the tab is already selected.");
}
}
+ invalidateOptionsMenu();
}
/** Returns true if the given intent contains a phone number to populate the dialer with */