Workaround to ensure the status bar is displayed, needed on some devices

This commit is contained in:
Sylvain Berfini 2013-04-08 12:44:53 +02:00
parent ba7b93d156
commit 877ee12577

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) {