diff options
author | Sailesh Nepal <sail@google.com> | 2014-04-01 12:33:49 -0700 |
---|---|---|
committer | Sailesh Nepal <sail@google.com> | 2014-04-01 14:11:32 -0700 |
commit | 7b2248bfff11c50e208908cb74b5f94b3ad7a3c0 (patch) | |
tree | 05991e112f2bb37f68fecf13bb7a364965c91f71 /InCallUI/src/com/android/incallui/CallCardPresenter.java | |
parent | 248a6687e8075e9730217be73c54ee4f95501a0e (diff) |
InCallUI - Use String IDs
Change-Id: Ibacb79658c146466d4f23bfcf7af0ebfb6e84dd0
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index 598e69af5..272c6c12f 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -246,7 +246,7 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> } // otherwise compare call Ids - return call1.getCallId() == call2.getCallId(); + return call1.getCallId().equals(call2.getCallId()); } private void maybeStartSearch(Call call, boolean isPrimary) { @@ -265,7 +265,7 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> cache.findInfo(call, isIncoming, new ContactInfoCacheCallback() { @Override - public void onContactInfoComplete(int callId, ContactCacheEntry entry) { + public void onContactInfoComplete(String callId, ContactCacheEntry entry) { updateContactEntry(entry, isPrimary, false); if (entry.name != null) { Log.d(TAG, "Contact found: " + entry); @@ -276,14 +276,14 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> } @Override - public void onImageLoadComplete(int callId, ContactCacheEntry entry) { + public void onImageLoadComplete(String callId, ContactCacheEntry entry) { if (getUi() == null) { return; } if (entry.photo != null) { - if (mPrimary != null && callId == mPrimary.getCallId()) { + if (mPrimary != null && callId.equals(mPrimary.getCallId())) { getUi().setPrimaryImage(entry.photo); - } else if (mSecondary != null && callId == mSecondary.getCallId()) { + } else if (mSecondary != null && callId.equals(mSecondary.getCallId())) { getUi().setSecondaryImage(entry.photo); } } |