summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorChristine Chen <christinech@google.com>2013-09-06 10:14:48 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-06 10:14:48 -0700
commit5a85cb01e8a0bbe5de68a1ff9fc124ba8ff7e41f (patch)
tree4b2075636b268b1711037454ee8cce4fcb8c5eef /InCallUI
parentc20d9fc117bcecbd068e140899d932b87bc1bd53 (diff)
parent4f5b60270e59c8e7dfb22489361ef83c4630485a (diff)
am 54601f65: Adds UI null check.
* commit '54601f653bb8cc6b37b56b8de6515a2d6aa9fbb1': Adds UI null check.
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/AnswerPresenter.java8
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);
}