From b040158d7bb2f5c7d06bd2c1db5e96adafbcff3e Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Tue, 5 May 2015 12:22:38 -0700 Subject: DO NOT MERGE Video call upgrade/dowgrade request changes. - fixed potential NPE in VideoCallFragment when setting preview size. - moved photo load into the postExecute for the async task -- it is already threaded and I was seeing intermittent concurrency issues. - Changed CallButtonFragment to retrieve max # of buttons from config.xml. - Added override for wider screens (e.g. N6 and wider) to show an extra button. - Reorganized call buttons so that the "Camera on/off" button is adjacent to the flip camera button. - Changed answer Glowpad to pass correct video state so that accepting a video request uses the correct state (important for accepting requests to turn camera back on). - added new Session modification state REQUEST_REJECTED for when the remote user explicitly declines the request. This is used to trigger a "video request rejected" message when the remote party rejects the request. Bug: 20257400 Change-Id: Ibe25eb045ee868748f91bf411f285629d36ebcd2 --- InCallUI/res/layout/call_button_fragment.xml | 14 ++++---- InCallUI/res/layout/call_card_fragment.xml | 7 ++++ InCallUI/res/values-sw410dp/config.xml | 21 ++++++++++++ InCallUI/res/values/array.xml | 51 ++++------------------------ InCallUI/res/values/config.xml | 20 +++++++++++ InCallUI/res/values/strings.xml | 4 +-- 6 files changed, 64 insertions(+), 53 deletions(-) create mode 100644 InCallUI/res/values-sw410dp/config.xml create mode 100644 InCallUI/res/values/config.xml (limited to 'InCallUI/res') diff --git a/InCallUI/res/layout/call_button_fragment.xml b/InCallUI/res/layout/call_button_fragment.xml index 17c2d7c78..0cdaf23f7 100644 --- a/InCallUI/res/layout/call_button_fragment.xml +++ b/InCallUI/res/layout/call_button_fragment.xml @@ -122,6 +122,13 @@ + + + - - - + + + + + + 6 + \ No newline at end of file diff --git a/InCallUI/res/values/array.xml b/InCallUI/res/values/array.xml index 2e38c2c46..7877ec8f3 100644 --- a/InCallUI/res/values/array.xml +++ b/InCallUI/res/values/array.xml @@ -112,61 +112,24 @@ @string/description_direction_down - - - + - Decline upgrade to video request (drag left)--> + @drawable/ic_lockscreen_answer_video - @null - @drawable/ic_lockscreen_decline - @drawable/ic_lockscreen_answer + @drawable/ic_lockscreen_decline_video - + + @string/description_target_accept_upgrade_to_video_request @null @string/description_target_decline_upgrade_to_video_request @null" - + @string/description_direction_right @null @string/description_direction_left @null - - - - @drawable/ic_lockscreen_answer_video - @drawable/ic_lockscreen_decline - - - - - @drawable/ic_lockscreen_answer_video - @drawable/ic_lockscreen_decline - - - @string/description_target_accept_upgrade_to_video_request - @string/description_target_decline_upgrade_to_video_request - - - - - @drawable/ic_lockscreen_answer_video - @drawable/ic_lockscreen_decline - - - @string/description_target_accept_upgrade_to_video_request - @string/description_target_decline_upgrade_to_video_request - - diff --git a/InCallUI/res/values/config.xml b/InCallUI/res/values/config.xml new file mode 100644 index 000000000..8acbd5910 --- /dev/null +++ b/InCallUI/res/values/config.xml @@ -0,0 +1,20 @@ + + + + 5 + \ No newline at end of file diff --git a/InCallUI/res/values/strings.xml b/InCallUI/res/values/strings.xml index f913f68a4..c985a8cc7 100644 --- a/InCallUI/res/values/strings.xml +++ b/InCallUI/res/values/strings.xml @@ -114,8 +114,8 @@ Requesting video Can\'t connect video call - - Video call (Paused) + + Video request rejected -- cgit v1.2.3