Fix crash that happens sometimes
This commit is contained in:
parent
1f54b20397
commit
b33f2fc103
1 changed files with 15 additions and 13 deletions
|
@ -1370,6 +1370,7 @@ public class LinphoneActivity extends FragmentActivity implements
|
||||||
}
|
}
|
||||||
|
|
||||||
fragmentsHistory.remove(fragmentsHistory.size() - 1);
|
fragmentsHistory.remove(fragmentsHistory.size() - 1);
|
||||||
|
if (fragmentsHistory.size() > 0) {
|
||||||
FragmentsAvailable newFragmentType = fragmentsHistory.get(fragmentsHistory.size() - 1);
|
FragmentsAvailable newFragmentType = fragmentsHistory.get(fragmentsHistory.size() - 1);
|
||||||
LinearLayout ll = (LinearLayout) findViewById(R.id.fragmentContainer2);
|
LinearLayout ll = (LinearLayout) findViewById(R.id.fragmentContainer2);
|
||||||
if (newFragmentType.shouldAddItselfToTheRightOf(currentFragment)) {
|
if (newFragmentType.shouldAddItselfToTheRightOf(currentFragment)) {
|
||||||
|
@ -1388,6 +1389,7 @@ public class LinphoneActivity extends FragmentActivity implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (keyCode == KeyEvent.KEYCODE_MENU && statusFragment != null) {
|
} else if (keyCode == KeyEvent.KEYCODE_MENU && statusFragment != null) {
|
||||||
if (event.getRepeatCount() < 1) {
|
if (event.getRepeatCount() < 1) {
|
||||||
statusFragment.openOrCloseStatusBar(true);
|
statusFragment.openOrCloseStatusBar(true);
|
||||||
|
|
Loading…
Reference in a new issue