Fix rotation issue on some fragments on tablets
This commit is contained in:
parent
2abe8b5b84
commit
c71aa32289
1 changed files with 5 additions and 1 deletions
|
@ -1312,8 +1312,12 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isTablet()) {
|
if (isTablet()) {
|
||||||
|
// Prevent fragmentContainer2 to be visible when rotating the device
|
||||||
LinearLayout ll = (LinearLayout) findViewById(R.id.fragmentContainer2);
|
LinearLayout ll = (LinearLayout) findViewById(R.id.fragmentContainer2);
|
||||||
if (currentFragment == FragmentsAvailable.DIALER) {
|
if (currentFragment == FragmentsAvailable.DIALER
|
||||||
|
|| currentFragment == FragmentsAvailable.ABOUT
|
||||||
|
|| currentFragment == FragmentsAvailable.SETTINGS
|
||||||
|
|| currentFragment == FragmentsAvailable.ACCOUNT_SETTINGS) {
|
||||||
ll.setVisibility(View.GONE);
|
ll.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue