diff options
author | Jay Shrauner <shrauner@google.com> | 2015-03-25 21:43:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-25 21:43:40 +0000 |
commit | 753fae1bfe34ac79b96648b17dcd8498b1a6a974 (patch) | |
tree | 61d8049a4c8f52e78f325be3f4d18c368b44af4c /InCallUI/src | |
parent | bc01cc61a572462bf7603418011e707ed861f24e (diff) | |
parent | d274e92414988c72708af270e3799b83b4e3b40c (diff) |
Merge "Fix NPE in endCallClicked"
Diffstat (limited to 'InCallUI/src')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index 647cdfdff..690e2470d 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -695,9 +695,10 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> } Log.i(this, "Disconnecting call: " + mPrimary); + final String callId = mPrimary.getId(); mPrimary.setState(Call.State.DISCONNECTING); CallList.getInstance().onUpdate(mPrimary); - TelecomAdapter.getInstance().disconnectCall(mPrimary.getId()); + TelecomAdapter.getInstance().disconnectCall(callId); } private String getNumberFromHandle(Uri handle) { |