From 877ee12577b5f6e72558f8abe020dd7157ef5051 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 8 Apr 2013 12:44:53 +0200 Subject: [PATCH] Workaround to ensure the status bar is displayed, needed on some devices --- src/org/linphone/LinphoneActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/linphone/LinphoneActivity.java b/src/org/linphone/LinphoneActivity.java index db4ab909f..205c53672 100644 --- a/src/org/linphone/LinphoneActivity.java +++ b/src/org/linphone/LinphoneActivity.java @@ -232,12 +232,12 @@ public class LinphoneActivity extends FragmentActivity implements return; } - findViewById(R.id.status).setVisibility(View.VISIBLE); if (statusFragment != null && !statusFragment.isVisible()) { // Hack to ensure statusFragment is visible after coming back to // dialer from chat statusFragment.getView().setVisibility(View.VISIBLE); } + findViewById(R.id.status).setVisibility(View.VISIBLE); findViewById(R.id.fragmentContainer).setPadding(0, LinphoneUtils.pixelsToDpi(getResources(), 40), 0, 0); } @@ -1384,6 +1384,9 @@ public class LinphoneActivity extends FragmentActivity implements showStatusBar(); reloadConfig(); 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) {