Fix crash when changing phone orientation on audio calls
This commit is contained in:
parent
772b04aea7
commit
6089832858
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,6 @@ public class DialerActivity extends LinphoneManagerWaitActivity implements Linph
|
||||||
|
|
||||||
|
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
setContentView(R.layout.dialer);
|
setContentView(R.layout.dialer);
|
||||||
|
|
||||||
useIncallActivity = getResources().getBoolean(R.bool.use_incall_activity);
|
useIncallActivity = getResources().getBoolean(R.bool.use_incall_activity);
|
||||||
|
@ -144,6 +143,10 @@ public class DialerActivity extends LinphoneManagerWaitActivity implements Linph
|
||||||
if (numpad != null)
|
if (numpad != null)
|
||||||
numpad.setAddressWidget(mAddress);
|
numpad.setAddressWidget(mAddress);
|
||||||
|
|
||||||
|
// call to super must be done after all fields are initialized
|
||||||
|
// because it may call this.enterIncallMode
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
checkIfOutgoingCallIntentReceived();
|
checkIfOutgoingCallIntentReceived();
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
|
|
Loading…
Reference in a new issue