diff options
author | Andrew Lee <anwlee@google.com> | 2015-03-26 12:16:20 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-03-26 12:16:20 -0700 |
commit | 5387ddb2da7291341663c15375de266f377b07d3 (patch) | |
tree | 05d2623b0e8c48e11a1e405b430e9b5fd47389e7 /src | |
parent | 02c36528f064b1eafbd4e2432a6e09937fa5f703 (diff) |
Move Report-Bad-Data toast to GoogleDialer.
Bug: 19949319
Change-Id: I32a2217a24915a7d862a1c9d521fc0c45f0ecb68
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAdapter.java | 9 | ||||
-rw-r--r-- | src/com/android/dialer/calllog/CallLogFragment.java | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index aa2c1df43..121851733 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -41,7 +41,6 @@ import android.view.ViewTreeObserver; import android.view.accessibility.AccessibilityEvent; import android.widget.ImageView; import android.widget.TextView; -import android.widget.Toast; import com.android.common.widget.GroupingListAdapter; import com.android.contacts.common.CallUtil; @@ -145,7 +144,6 @@ public class CallLogAdapter extends GroupingListAdapter protected final Context mContext; private final ContactInfoHelper mContactInfoHelper; private final CallFetcher mCallFetcher; - private final Toast mReportedToast; private final OnReportButtonClickListener mOnReportButtonClickListener; private ViewTreeObserver mViewTreeObserver = null; @@ -351,8 +349,6 @@ public class CallLogAdapter extends GroupingListAdapter mCallItemExpandedListener = callItemExpandedListener; mOnReportButtonClickListener = onReportButtonClickListener; - mReportedToast = Toast.makeText(mContext, R.string.toast_caller_id_reported, - Toast.LENGTH_SHORT); mContactInfoCache = ExpirableCache.create(CONTACT_INFO_CACHE_SIZE); mRequests = new LinkedList<ContactInfoRequest>(); @@ -1332,11 +1328,6 @@ public class CallLogAdapter extends GroupingListAdapter } } - public void onBadDataReported(String number) { - mContactInfoCache.expireAll(); - mReportedToast.show(); - } - /** * Manages the state changes for the UI interaction where a call log row is expanded. * diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java index 6d07301df..c4e453c33 100644 --- a/src/com/android/dialer/calllog/CallLogFragment.java +++ b/src/com/android/dialer/calllog/CallLogFragment.java @@ -672,7 +672,7 @@ public class CallLogFragment extends ListFragment if (number == null) { return; } - mAdapter.onBadDataReported(number); + mAdapter.invalidateCache(); mAdapter.notifyDataSetChanged(); } |