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