From bbb397c9834493418a73d75e6cbb9173c861aba5 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Thu, 7 Apr 2016 13:00:25 -0700 Subject: Fix UI issues in call logs when spam is not enabled. * Don't add spam related action menu to call log. Change-Id: Id32a7e0e0819c780bcb60e917ea6f4a4d19394c9 --- src/com/android/dialer/calllog/CallLogAdapter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/com/android/dialer/calllog/CallLogAdapter.java') diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 0c1bf9e2e..c763b7f39 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -21,10 +21,7 @@ import com.android.dialer.service.ExtendedCallInfoService; import com.android.dialerbind.ObjectFactory; import com.google.common.annotations.VisibleForTesting; -import android.app.AlertDialog; -import android.content.ContentValues; import android.content.Context; -import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Resources; @@ -45,7 +42,6 @@ import android.view.View; import android.view.View.AccessibilityDelegate; import android.view.ViewGroup; import android.view.accessibility.AccessibilityEvent; -import android.widget.CheckBox; import com.android.contacts.common.ContactsUtils; import com.android.contacts.common.compat.CompatUtils; @@ -496,6 +492,7 @@ public class CallLogAdapter extends GroupingListAdapter if (mExtendedCallInfoService == null) { loadDataAndRender(views); } else { + views.isSpamFeatureEnabled = true; mExtendedCallInfoService.getExtendedCallInfo(number, countryIso, new ExtendedCallInfoService.Listener() { @Override -- cgit v1.2.3