summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Bird <sbird@cyngn.com>2016-02-03 15:55:53 -0800
committerRichard MacGregor <rmacgregor@cyngn.com>2016-03-25 11:42:19 -0700
commit8055e091cc5a489583cd41d0d5cd416b3ee59936 (patch)
tree6fc801d206edfe603533e9c9b02f0c241c1b1138 /src
parent9a5876f8484a5336cbd33b189cd5173924f055d6 (diff)
downloadandroid_packages_apps_ContactsCommon-8055e091cc5a489583cd41d0d5cd416b3ee59936.tar.gz
android_packages_apps_ContactsCommon-8055e091cc5a489583cd41d0d5cd416b3ee59936.tar.bz2
android_packages_apps_ContactsCommon-8055e091cc5a489583cd41d0d5cd416b3ee59936.zip
Explicity set extra number to null if one does not exist
Change-Id: I25515c10cef2773ddafd7f5db51bd53dd64719c5 Ticket: CD-334
Diffstat (limited to 'src')
-rw-r--r--src/com/android/contacts/common/list/PhoneNumberListAdapter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/contacts/common/list/PhoneNumberListAdapter.java b/src/com/android/contacts/common/list/PhoneNumberListAdapter.java
index d3c423b3..f95b6baa 100644
--- a/src/com/android/contacts/common/list/PhoneNumberListAdapter.java
+++ b/src/com/android/contacts/common/list/PhoneNumberListAdapter.java
@@ -461,12 +461,14 @@ public class PhoneNumberListAdapter extends ContactEntryListAdapter {
try {
int columnIndex = cursor.getColumnIndexOrThrow("callable_extra_number");
final String extra = cursor.getString(columnIndex);
+ TextView callProviderView = view.getCallProviderView();
if (!TextUtils.isEmpty(extra)) {
- TextView callProviderView = view.getCallProviderView();
view.setExtraNumber(extra);
callProviderView.setOnClickListener(
bindExtraCallActionOnClick(callProviderView, extra, position));
+ } else {
+ view.setExtraNumber(null);
}
} catch (IllegalArgumentException e) {
Log.i(TAG, "Column does not exist", e);