Fixed crashs
This commit is contained in:
parent
e82537dbb6
commit
4a529b9691
1 changed files with 2 additions and 1 deletions
|
@ -682,6 +682,7 @@ public class CallActivity extends LinphoneGenericActivity
|
||||||
|
|
||||||
mRecordCall.setEnabled(
|
mRecordCall.setEnabled(
|
||||||
!LinphoneManager.getLc().soundResourcesLocked()
|
!LinphoneManager.getLc().soundResourcesLocked()
|
||||||
|
&& currentCall != null
|
||||||
&& currentCall.getCurrentParams().getRecordFile() != null);
|
&& currentCall.getCurrentParams().getRecordFile() != null);
|
||||||
mRecordCall.setImageResource(
|
mRecordCall.setImageResource(
|
||||||
mIsRecording ? R.drawable.options_rec_selected : R.drawable.options_rec_default);
|
mIsRecording ? R.drawable.options_rec_selected : R.drawable.options_rec_default);
|
||||||
|
@ -1320,7 +1321,7 @@ public class CallActivity extends LinphoneGenericActivity
|
||||||
|
|
||||||
private void handleViewIntent() {
|
private void handleViewIntent() {
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
if (intent != null && intent.getAction().equals("android.intent.action.VIEW")) {
|
if (intent != null && "android.intent.action.VIEW".equals(intent.getAction())) {
|
||||||
Call call = LinphoneManager.getLc().getCurrentCall();
|
Call call = LinphoneManager.getLc().getCurrentCall();
|
||||||
if (call != null && isVideoEnabled(call)) {
|
if (call != null && isVideoEnabled(call)) {
|
||||||
Player player = call.getPlayer();
|
Player player = call.getPlayer();
|
||||||
|
|
Loading…
Reference in a new issue