From 886bdcd28a806f915e3acce30614211637e35917 Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Tue, 22 Nov 2011 11:12:57 +0100 Subject: [PATCH] Fundamental incall UI changes. - single click for resuming/pausing call; - long click for advanced call/conference interaction; - terminate call action according to situation; - conference details activity; - cleanings. --- AndroidManifest.xml | 6 + res/layout/conf_callee.xml | 19 +- res/layout/conf_callee_older_devices.xml | 13 - res/layout/conf_choices_admin.xml | 37 -- res/layout/conf_choices_dialog.xml | 25 - res/layout/conf_details_participant.xml | 47 ++ ...onf_details_participant_choices_dialog.xml | 28 + res/layout/conference_details_layout.xml | 33 ++ .../{conferencing.xml => incall_layout.xml} | 10 +- res/layout/incall_view.xml | 59 -- res/values/callee_style.xml | 2 +- res/values/digit_style.xml | 2 +- res/values/slidingtab_style.xml | 4 +- res/values/strings.xml | 5 +- ... => AbstractContactPickerActivityNew.java} | 2 +- .../linphone/ConferenceDetailsActivity.java | 252 +++++++++ .../linphone/ContactPickerActivityNew.java | 2 +- src/org/linphone/DialerActivity.java | 8 +- src/org/linphone/FirstLoginActivity.java | 2 +- src/org/linphone/IncallActivity.java | 520 +++++++----------- src/org/linphone/LinphoneActivity.java | 77 +-- src/org/linphone/LinphoneConfigException.java | 40 -- .../linphone/LinphoneLauncherActivity.java | 3 - src/org/linphone/LinphoneManager.java | 154 +++--- .../linphone/LinphonePreferenceManager.java | 8 - .../linphone/LinphonePreferencesActivity.java | 11 +- src/org/linphone/LinphoneService.java | 12 +- src/org/linphone/LinphoneUtils.java | 54 ++ src/org/linphone/core/LinphoneCoreImpl.java | 6 +- src/org/linphone/ui/IncallTimer.java | 26 +- submodules/linphone | 2 +- test/org/linphone/TestConferenceActivity.java | 437 --------------- 32 files changed, 751 insertions(+), 1155 deletions(-) delete mode 100644 res/layout/conf_choices_admin.xml create mode 100644 res/layout/conf_details_participant.xml create mode 100644 res/layout/conf_details_participant_choices_dialog.xml create mode 100644 res/layout/conference_details_layout.xml rename res/layout/{conferencing.xml => incall_layout.xml} (87%) delete mode 100644 res/layout/incall_view.xml rename src/org/linphone/{AbstractContactPickerActivity.java => AbstractContactPickerActivityNew.java} (98%) create mode 100644 src/org/linphone/ConferenceDetailsActivity.java delete mode 100644 src/org/linphone/LinphoneConfigException.java delete mode 100644 test/org/linphone/TestConferenceActivity.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 01b1d972e..967ce5274 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -79,6 +79,12 @@ + + + + + diff --git a/res/layout/conf_callee.xml b/res/layout/conf_callee.xml index a63fea3a4..faff7916f 100644 --- a/res/layout/conf_callee.xml +++ b/res/layout/conf_callee.xml @@ -12,27 +12,18 @@ android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerVertical="true"> + android:visibility="gone" + android:layout_width="wrap_content" android:layout_height="wrap_content" /> - - - - - + android:visibility="gone" + android:layout_width="wrap_content" android:layout_height="wrap_content" /> - - + diff --git a/res/layout/conf_callee_older_devices.xml b/res/layout/conf_callee_older_devices.xml index 3b21cd493..86eb82a86 100644 --- a/res/layout/conf_callee_older_devices.xml +++ b/res/layout/conf_callee_older_devices.xml @@ -21,24 +21,11 @@ - - - - - - diff --git a/res/layout/conf_choices_admin.xml b/res/layout/conf_choices_admin.xml deleted file mode 100644 index cc7963fb3..000000000 --- a/res/layout/conf_choices_admin.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/conf_choices_dialog.xml b/res/layout/conf_choices_dialog.xml index bce46ca5a..7d2fd1581 100644 --- a/res/layout/conf_choices_dialog.xml +++ b/res/layout/conf_choices_dialog.xml @@ -41,15 +41,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" /> - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/conf_details_participant_choices_dialog.xml b/res/layout/conf_details_participant_choices_dialog.xml new file mode 100644 index 000000000..f7a79b68e --- /dev/null +++ b/res/layout/conf_details_participant_choices_dialog.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/conference_details_layout.xml b/res/layout/conference_details_layout.xml new file mode 100644 index 000000000..1960221e6 --- /dev/null +++ b/res/layout/conference_details_layout.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + diff --git a/res/layout/conferencing.xml b/res/layout/incall_layout.xml similarity index 87% rename from res/layout/conferencing.xml rename to res/layout/incall_layout.xml index 6027dcdc5..b9f15d338 100644 --- a/res/layout/conferencing.xml +++ b/res/layout/incall_layout.xml @@ -10,10 +10,6 @@ -