Fix conference view and add chali list view
This commit is contained in:
parent
c6035e841f
commit
6f180fc307
3 changed files with 13 additions and 49 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.linphone"
|
package="org.linphone"
|
||||||
android:versionCode="2510" android:installLocation="auto">
|
android:versionCode="2599" android:installLocation="auto">
|
||||||
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22"/>
|
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22"/>
|
||||||
|
|
||||||
<!-- Permissions for Push Notification -->
|
<!-- Permissions for Push Notification -->
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
android:id="@+id/top_bar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="60dp"
|
android:layout_height="60dp"
|
||||||
android:layout_gravity="top"
|
android:layout_gravity="top"
|
||||||
|
@ -13,70 +14,32 @@
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/new_discussion"
|
android:id="@+id/new_discussion"
|
||||||
android:contentDescription="@string/content_description_new_discussion"
|
|
||||||
android:src="@drawable/chat_add"
|
android:src="@drawable/chat_add"
|
||||||
android:background="@drawable/toolbar_button"
|
android:background="@drawable/toolbar_button"
|
||||||
android:layout_width="wrap_content"
|
android:contentDescription="@string/content_description_new_discussion"
|
||||||
|
android:layout_width="70dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:padding="10dp"
|
android:padding="15dp"/>
|
||||||
android:adjustViewBounds="true"/>
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/delete"
|
|
||||||
android:src="@drawable/delete"
|
|
||||||
android:background="@drawable/toolbar_button"
|
|
||||||
android:contentDescription="@string/content_description_valid"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:padding="10dp"
|
|
||||||
android:adjustViewBounds="true"
|
|
||||||
android:visibility="gone"/>
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/select_all"
|
|
||||||
android:src="@drawable/select_all"
|
|
||||||
android:background="@drawable/toolbar_button"
|
|
||||||
android:contentDescription="@string/content_description_valid"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_toLeftOf="@id/delete"
|
|
||||||
android:padding="10dp"
|
|
||||||
android:adjustViewBounds="true"
|
|
||||||
android:visibility="gone"/>
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/deselect_all"
|
|
||||||
android:src="@drawable/deselect_all"
|
|
||||||
android:background="@drawable/toolbar_button"
|
|
||||||
android:contentDescription="@string/content_description_valid"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_toLeftOf="@id/delete"
|
|
||||||
android:padding="10dp"
|
|
||||||
android:adjustViewBounds="true"
|
|
||||||
android:visibility="gone"/>
|
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/edit"
|
android:id="@+id/edit"
|
||||||
android:src="@drawable/edit_list_button"
|
android:src="@drawable/edit_list_button"
|
||||||
android:background="@drawable/toolbar_button"
|
android:background="@drawable/toolbar_button"
|
||||||
android:contentDescription="@string/content_description_edit"
|
android:contentDescription="@string/content_description_edit"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="70dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:padding="10dp"
|
android:padding="15dp"/>
|
||||||
android:adjustViewBounds="true"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<include layout="@layout/edit_list"/>
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:id="@+id/chatList"
|
android:id="@+id/chatList"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:divider="@android:color/darker_gray"
|
android:divider="@color/colorE"
|
||||||
android:cacheColorHint="@color/transparent"
|
android:cacheColorHint="@color/transparent"
|
||||||
android:dividerHeight="1dp" />
|
android:dividerHeight="1dp" />
|
||||||
|
|
||||||
|
|
|
@ -1355,7 +1355,6 @@ public class InCallActivity extends Activity implements OnClickListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayOtherCalls(Resources resources, final LinphoneCall call, int index) {
|
private void displayOtherCalls(Resources resources, final LinphoneCall call, int index) {
|
||||||
Log.w("Display other calls");
|
|
||||||
String sipUri = call.getRemoteAddress().asStringUriOnly();
|
String sipUri = call.getRemoteAddress().asStringUriOnly();
|
||||||
LinphoneAddress lAddress;
|
LinphoneAddress lAddress;
|
||||||
try {
|
try {
|
||||||
|
@ -1507,7 +1506,7 @@ public class InCallActivity extends Activity implements OnClickListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LinphoneManager.getLc().getCurrentCall() == null) {
|
if (LinphoneManager.getLc().getCurrentCall() == null && !isConferenceRunning ) {
|
||||||
showAudioView();
|
showAudioView();
|
||||||
mActiveCallHeader.setVisibility(View.GONE);
|
mActiveCallHeader.setVisibility(View.GONE);
|
||||||
mNoCurrentCall.setVisibility(View.VISIBLE);
|
mNoCurrentCall.setVisibility(View.VISIBLE);
|
||||||
|
@ -1535,6 +1534,7 @@ public class InCallActivity extends Activity implements OnClickListener {
|
||||||
private void enterConference() {
|
private void enterConference() {
|
||||||
LinphoneManager.getLc().addAllToConference();
|
LinphoneManager.getLc().addAllToConference();
|
||||||
displayConferenceHeader();
|
displayConferenceHeader();
|
||||||
|
mNoCurrentCall.setVisibility(View.GONE);
|
||||||
displayOrHideCallsHeader(false);
|
displayOrHideCallsHeader(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1587,6 +1587,7 @@ public class InCallActivity extends Activity implements OnClickListener {
|
||||||
mControlsLayout.setVisibility(View.VISIBLE);
|
mControlsLayout.setVisibility(View.VISIBLE);
|
||||||
LinphoneManager.startProximitySensorForActivity(InCallActivity.this);
|
LinphoneManager.startProximitySensorForActivity(InCallActivity.this);
|
||||||
mActiveCallHeader.setVisibility(View.GONE);
|
mActiveCallHeader.setVisibility(View.GONE);
|
||||||
|
mNoCurrentCall.setVisibility(View.GONE);
|
||||||
callsList.setVisibility(View.VISIBLE);
|
callsList.setVisibility(View.VISIBLE);
|
||||||
conferenceList.removeAllViews();
|
conferenceList.removeAllViews();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue