summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/calllog/CallLogAdapter.java
diff options
context:
space:
mode:
authorEvan Charlton <evanc@google.com>2014-07-20 12:31:41 -0700
committerEvan Charlton <evanc@google.com>2014-07-20 14:40:31 -0700
commita2eadf3d68d4f6d0a948d37bc48e930115723ce0 (patch)
tree031230815e496b6760c822fd9e889c4a8e66c7c5 /src/com/android/dialer/calllog/CallLogAdapter.java
parentc329bfb6d47f20237d22e13297d5bbb72e612919 (diff)
downloadandroid_packages_apps_Dialer-a2eadf3d68d4f6d0a948d37bc48e930115723ce0.tar.gz
android_packages_apps_Dialer-a2eadf3d68d4f6d0a948d37bc48e930115723ce0.tar.bz2
android_packages_apps_Dialer-a2eadf3d68d4f6d0a948d37bc48e930115723ce0.zip
Rename PhoneAccountMetadata to PhoneAccount
Change-Id: I4597b14110c1cee7f637ec125b839852ef0f34c4
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogAdapter.java')
-rw-r--r--src/com/android/dialer/calllog/CallLogAdapter.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java
index 51cc95b0a..e83144185 100644
--- a/src/com/android/dialer/calllog/CallLogAdapter.java
+++ b/src/com/android/dialer/calllog/CallLogAdapter.java
@@ -644,9 +644,9 @@ public class CallLogAdapter extends GroupingListAdapter
final long date = c.getLong(CallLogQuery.DATE);
final long duration = c.getLong(CallLogQuery.DURATION);
final int callType = c.getInt(CallLogQuery.CALL_TYPE);
- final PhoneAccountHandle account = getAccount(c);
- final Drawable accountIcon = account == null ? null :
- TelecommManager.from(mContext).getPhoneAccountMetadata(account).getIcon(mContext);
+ final PhoneAccountHandle accountHandle = getAccountHandle(c);
+ final Drawable accountIcon = accountHandle == null ? null :
+ TelecommManager.from(mContext).getPhoneAccount(accountHandle).getIcon(mContext);
final String countryIso = c.getString(CallLogQuery.COUNTRY_ISO);
final long rowId = c.getLong(CallLogQuery.ID);
views.rowId = rowId;
@@ -671,7 +671,7 @@ public class CallLogAdapter extends GroupingListAdapter
views.number = number;
views.numberPresentation = numberPresentation;
views.callType = callType;
- views.mAccount = account;
+ views.mAccountHandle = accountHandle;
views.voicemailUri = c.getString(CallLogQuery.VOICEMAIL_URI);
// Stash away the Ids of the calls so that we can support deleting a row in the call log.
views.callIds = getCallIds(c, count);
@@ -690,7 +690,7 @@ public class CallLogAdapter extends GroupingListAdapter
if (PhoneNumberUtilsWrapper.canPlaceCallsTo(number, numberPresentation)) {
// Sets the primary action to call the number.
views.primaryActionView.setTag(IntentProvider.getReturnCallIntentProvider(number,
- account));
+ accountHandle));
} else {
// Number is not callable, so hide button.
views.primaryActionView.setTag(null);
@@ -980,7 +980,7 @@ public class CallLogAdapter extends GroupingListAdapter
if (canPlaceCallToNumber) {
// Sets the primary action to call the number.
views.callBackButtonView.setTag(
- IntentProvider.getReturnCallIntentProvider(views.number, views.mAccount));
+ IntentProvider.getReturnCallIntentProvider(views.number, views.mAccountHandle));
views.callBackButtonView.setVisibility(View.VISIBLE);
views.callBackButtonView.setOnClickListener(mActionListener);
} else {
@@ -993,7 +993,7 @@ public class CallLogAdapter extends GroupingListAdapter
if (canPlaceCallToNumber && views.phoneCallDetailsViews.callTypeIcons.isVideoShown()) {
views.videoCallButtonView.setTag(
IntentProvider.getReturnVideoCallIntentProvider(views.number,
- views.mAccount));
+ views.mAccountHandle));
views.videoCallButtonView.setVisibility(View.VISIBLE);
views.videoCallButtonView.setOnClickListener(mActionListener);
} else {
@@ -1262,7 +1262,7 @@ public class CallLogAdapter extends GroupingListAdapter
return features;
}
- private PhoneAccountHandle getAccount(Cursor c) {
+ private PhoneAccountHandle getAccountHandle(Cursor c) {
final String component_name = c.getString(CallLogQuery.ACCOUNT_COMPONENT_NAME);
final String account_id = c.getString(CallLogQuery.ACCOUNT_ID);