From d9859a7eb008196ba91073645567ab9212a82f17 Mon Sep 17 00:00:00 2001 From: Eric Erfanian Date: Wed, 21 Jun 2017 09:40:17 -0700 Subject: Dismiss popup menu when show dialpad chooser. Issue steps: 1. Show overflow menu in dialpad. 2. Press Home button, start another app such as Messaging. 3. Make phone call by Messaging app. 4. After the call is active, press home button and start Dialer again. 5. Dialpad is dismissed but popup overflow menu still shows. Solution: Dismiss popup menu when show dialpad chooser. Credit to: yifan.bai https://android-review.googlesource.com/#/c/417719/ Test: TH, manual Change-Id: I019a799d52282bfb47a09d43cf25c14b053f8d9b --- java/com/android/dialer/app/dialpad/DialpadFragment.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'java') diff --git a/java/com/android/dialer/app/dialpad/DialpadFragment.java b/java/com/android/dialer/app/dialpad/DialpadFragment.java index c0b26c91a..a6c8b96ad 100644 --- a/java/com/android/dialer/app/dialpad/DialpadFragment.java +++ b/java/com/android/dialer/app/dialpad/DialpadFragment.java @@ -1176,6 +1176,10 @@ public class DialpadFragment extends Fragment mDialpadView.setVisibility(View.GONE); } + if (mOverflowPopupMenu != null) { + mOverflowPopupMenu.dismiss(); + } + mFloatingActionButtonController.setVisible(false); mDialpadChooser.setVisibility(View.VISIBLE); -- cgit v1.2.3