Prevented crash on launch
This commit is contained in:
parent
b01ae2ecb0
commit
aec92a3c50
1 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
int missedCalls = (LinphoneManager.getInstance() != null) ? LinphoneManager.getLc().getMissedCallsCount() : 0;
|
int missedCalls = (LinphoneManager.isInstanciated()) ? LinphoneManager.getLc().getMissedCallsCount() : 0;
|
||||||
displayMissedCalls(missedCalls);
|
displayMissedCalls(missedCalls);
|
||||||
|
|
||||||
int rotation = getWindowManager().getDefaultDisplay().getRotation();
|
int rotation = getWindowManager().getDefaultDisplay().getRotation();
|
||||||
|
@ -276,7 +276,7 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LinphoneManager.getInstance() != null) {
|
if (LinphoneManager.isInstanciated()) {
|
||||||
LinphoneManager.getLc().setDeviceRotation(rotation);
|
LinphoneManager.getLc().setDeviceRotation(rotation);
|
||||||
}
|
}
|
||||||
mAlwaysChangingPhoneAngle = rotation;
|
mAlwaysChangingPhoneAngle = rotation;
|
||||||
|
|
Loading…
Reference in a new issue