From 50d70a614f2f617ed60d24f8d1756b1bcb20bb80 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Tue, 30 Jun 2015 13:15:59 -0700 Subject: Show dialpad button for VT calls, cleanup dialpad on rotation. 1. Show the dialpad button for VT calls (this was easy). 2. In testing I realized there were some other dialpad scenarios that did not work properly: - The dialpad visibility state was not properly restored after rotation. - The auto-fullscreen code could hide the call card when the dialpad was showing, resulting in an inability to hide the dialpad. - In landscape it was possible to tap between the call card and the dialpad and cause the call card to be hidden. - If user goes to background in fullscreen mode and then opens dialer and chooses to show the dialpad, the app is still in fullscreen and it is not possible to hide the dialpad. 3. Noticed an issue related to the fact mIsFullScreen in InCallPresenter is static, and after rotation you're always defaulting to not fullscreen. Fixed by clearing fullscreen state on rotation to match actuality. Bug: 21296950 Change-Id: I2c7a666a50e2284b1d22db43c443b34109cff9b1 --- .../com/android/incallui/CallButtonPresenter.java | 2 +- .../src/com/android/incallui/CallCardFragment.java | 5 +- .../src/com/android/incallui/InCallActivity.java | 70 +++++++++++++++++----- .../src/com/android/incallui/InCallPresenter.java | 45 ++++++++++++-- .../com/android/incallui/VideoCallPresenter.java | 6 +- 5 files changed, 103 insertions(+), 25 deletions(-) (limited to 'InCallUI/src/com/android') diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java index 29cdd4ddc..ca186b34d 100644 --- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java +++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java @@ -387,7 +387,7 @@ public class CallButtonPresenter extends Presenter