diff options
author | Nivedita Sarkar <nsarkar@codeaurora.org> | 2016-09-07 00:30:37 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-11 05:21:30 -0700 |
commit | 640329421c6cc129362aadce3a435f62d579d1ef (patch) | |
tree | 57ef87210c4ca6e9b26d90c044d2bf2f4a66acaf /InCallUI/src/com/android/incallui/CallCardPresenter.java | |
parent | d9bad584d715e79b393c87ce4035855b06bbe0f7 (diff) | |
download | android_packages_apps_Dialer-640329421c6cc129362aadce3a435f62d579d1ef.tar.gz android_packages_apps_Dialer-640329421c6cc129362aadce3a435f62d579d1ef.tar.bz2 android_packages_apps_Dialer-640329421c6cc129362aadce3a435f62d579d1ef.zip |
IMS-VT: FR36492 - UI to disable picture in picture mode
- Allow user to disable picture in picture mode if the adb
property - "persist.disable.pip.mode" is set to 1
- Provide an alert dialog to the user on long press on the
video call screen (incoming or far end) which shows options
for camera preview and incoming picture modes
- If both options are selected, enable pip mode, if camera
preview is selected, enable camera preview mode otherwise
enable incoming video mode
- User can provide a size for the camera preview window for
non-PIP camera preview mode through adb property -
"persist.camera.preview.size" [format - widthxheight]
Change-Id: I49cb59e80914259b1a07cb63cd6965b5aff4f497
CRs-Fixed: 1054181
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index af5a7d9a3..315b57f34 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -1147,6 +1147,11 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> } ui.setCallCardVisible(!isFullscreenMode); ui.setSecondaryInfoVisible(!isFullscreenMode); + final int callState = (mPrimary != null) ? mPrimary.getState() : Call.State.INVALID; + ui.setEndCallButtonEnabled(!isFullscreenMode && + shouldShowEndCallButton(mPrimary, callState), + callState != Call.State.INCOMING /* animate */); + ui.showVbButton(!isFullscreenMode); maybeShowManageConferenceCallButton(); } @@ -1285,5 +1290,6 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> void animateForNewOutgoingCall(); void sendAccessibilityAnnouncement(); void showNoteSentToast(); + void showVbButton(boolean show); } } |