diff options
author | Jay Shrauner <shrauner@google.com> | 2015-08-04 05:26:27 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-04 05:26:27 +0000 |
commit | 536112b45495257391e068ee8ff14d901029d189 (patch) | |
tree | 7315edad7b4d5bbd596a8b96b6ceec6166bb7908 | |
parent | f0d4dd3e3c71527e166aa36fe98d0c94b28e3bd4 (diff) | |
parent | f66d216fd4cd8809dfd6f3e24f79dd14e43e2d0a (diff) |
am 256e4a6f: am 536a7d45: am 4283df0c: am 50ccc0c6: Fix NPE in onDetailsChanged
* commit '256e4a6fd8d52a7392a68e36d0a5cd68267dff0b':
Fix NPE in onDetailsChanged
-rw-r--r-- | InCallUI/src/com/android/incallui/CallButtonPresenter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java index 4fc60cac8..29cdd4ddc 100644 --- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java +++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java @@ -124,7 +124,8 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto */ @Override public void onDetailsChanged(Call call, android.telecom.Call.Details details) { - if (getUi() != null && Objects.equals(call, mCall)) { + // Only update if the changes are for the currently active call + if (getUi() != null && call != null && call.equals(mCall)) { updateButtonsState(call); } } |