diff options
Diffstat (limited to 'InCallUI/src/com/android/incallui')
-rw-r--r-- | InCallUI/src/com/android/incallui/AnswerPresenter.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java index 4c0f1d628..7f27133ed 100644 --- a/InCallUI/src/com/android/incallui/AnswerPresenter.java +++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java @@ -127,12 +127,16 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> } public void onText() { - getUi().showMessageDialogue(); + if (getUi() != null) { + getUi().showMessageDialogue(); + } } public void rejectCallWithMessage(String message) { Log.d(this, "sendTextToDefaultActivity()..."); - getUi().dismissPopup(); + if (getUi() != null) { + getUi().dismissPopup(); + } CallCommandClient.getInstance().rejectCall(mCallId, true, message); } |