summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2013-12-05 15:50:47 -0800
committerJay Shrauner <shrauner@google.com>2014-03-01 18:24:59 +0000
commite5fbbea9f992a695bead99e5f0407bd920ba6b38 (patch)
tree9b8c0c29edd78e648cfc8f96fc3bbe88d2e438ae /InCallUI
parentbfae028677b556cf7d544205c55d85f8adfa409f (diff)
Fix NPE in onPostDialCharWait
Handle calls to onPostDialCharWait when mInCallActivity is null. Bug:12021342 Change-Id: Id8da6074f7bd3a0c0962dbaa9246c2de18e6e38b (cherry picked from commit 01563b04e60e34845ed57d8bb0e90ed01c8462ab)
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index 8bec492d9..140262127 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/InCallPresenter.java
@@ -425,7 +425,9 @@ public class InCallPresenter implements CallList.Listener {
}
public void onPostDialCharWait(int callId, String chars) {
- mInCallActivity.showPostCharWaitDialog(callId, chars);
+ if (isActivityStarted()) {
+ mInCallActivity.showPostCharWaitDialog(callId, chars);
+ }
}
/**