Merge remote-tracking branch 'public/master' into bellesip

Conflicts:
	submodules/linphone
This commit is contained in:
Jehan Monnier 2013-04-10 14:28:12 +02:00
commit 50b490861d
7 changed files with 26 additions and 24 deletions

View file

@ -47,11 +47,10 @@
android:id="@+id/numpad" android:id="@+id/numpad"
android:background="@drawable/dialer_alt_background" android:background="@drawable/dialer_alt_background"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:visibility="invisible" android:visibility="invisible"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_below="@id/switchCamera" android:layout_centerVertical="true" />
android:layout_marginBottom="150dp" />
<LinearLayout <LinearLayout
android:id="@+id/menu" android:id="@+id/menu"

View file

@ -2,8 +2,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical"
android:background="@drawable/list_selector" android:background="@drawable/list_selector"
android:gravity="center_vertical"
android:orientation="vertical" > android:orientation="vertical" >
<TextView <TextView
@ -48,27 +48,27 @@
android:layout_marginLeft="10dp" /> android:layout_marginLeft="10dp" />
<ImageView <ImageView
android:contentDescription="@string/content_description_detail"
android:id="@+id/detail" android:id="@+id/detail"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:adjustViewBounds="true"
android:layout_weight="0.9" android:layout_weight="0.9"
android:src="@drawable/list_detail" android:adjustViewBounds="true"
android:layout_marginLeft="5dp" android:contentDescription="@string/content_description_detail"
android:layout_marginRight="5dp" /> android:paddingLeft="5dp"
android:paddingRight="5dp"
android:src="@drawable/list_detail" />
<ImageView <ImageView
android:contentDescription="@string/content_description_delete"
android:id="@+id/delete" android:id="@+id/delete"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:layout_weight="0.9" android:layout_weight="0.9"
android:visibility="gone" android:adjustViewBounds="true"
android:contentDescription="@string/content_description_delete"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:src="@drawable/list_delete" android:src="@drawable/list_delete"
android:layout_marginLeft="5dp" android:visibility="gone" />
android:layout_marginRight="5dp" />
</LinearLayout> </LinearLayout>

View file

@ -47,11 +47,10 @@
android:id="@+id/numpad" android:id="@+id/numpad"
android:background="@drawable/dialer_alt_background" android:background="@drawable/dialer_alt_background"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:visibility="invisible" android:visibility="invisible"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_below="@id/switchCamera" android:layout_centerVertical="true"/>
android:layout_marginBottom="150dp" />
<LinearLayout <LinearLayout
android:id="@+id/menu" android:id="@+id/menu"

View file

@ -324,7 +324,8 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
@Override @Override
public void run() { public void run() {
//Scroll to latest saw message //Scroll to latest saw message
messagesScrollView.scrollTo(0, messagesLayout.getChildAt(MESSAGES_STEP-1).getBottom()); if (messagesScrollView != null && messagesLayout != null && messagesLayout.getChildCount() >= MESSAGES_STEP-1)
messagesScrollView.scrollTo(0, messagesLayout.getChildAt(MESSAGES_STEP-1).getBottom());
} }
}, 300); }, 300);
} }

View file

@ -232,12 +232,12 @@ public class LinphoneActivity extends FragmentActivity implements
return; return;
} }
findViewById(R.id.status).setVisibility(View.VISIBLE);
if (statusFragment != null && !statusFragment.isVisible()) { if (statusFragment != null && !statusFragment.isVisible()) {
// Hack to ensure statusFragment is visible after coming back to // Hack to ensure statusFragment is visible after coming back to
// dialer from chat // dialer from chat
statusFragment.getView().setVisibility(View.VISIBLE); statusFragment.getView().setVisibility(View.VISIBLE);
} }
findViewById(R.id.status).setVisibility(View.VISIBLE);
findViewById(R.id.fragmentContainer).setPadding(0, LinphoneUtils.pixelsToDpi(getResources(), 40), 0, 0); findViewById(R.id.fragmentContainer).setPadding(0, LinphoneUtils.pixelsToDpi(getResources(), 40), 0, 0);
} }
@ -1384,6 +1384,9 @@ public class LinphoneActivity extends FragmentActivity implements
showStatusBar(); showStatusBar();
reloadConfig(); reloadConfig();
updateAnimationsState(); updateAnimationsState();
} else if (currentFragment == FragmentsAvailable.CHATLIST) {
//Hack to ensure display the status bar on some devices
showStatusBar();
} }
} }
} else if (keyCode == KeyEvent.KEYCODE_MENU && statusFragment != null) { } else if (keyCode == KeyEvent.KEYCODE_MENU && statusFragment != null) {

@ -1 +1 @@
Subproject commit 32a39741b64d74999134f5e6425609c4cfff5daf Subproject commit f9f77d4fe04cd51aa3ca4b3b35ac51667c48139e

@ -1 +1 @@
Subproject commit 391b6d6b0fdf6854e5a25f287c4d8461730a1d40 Subproject commit f21cf1f038496c14c66f2387df9542c5f5e28cf1