diff options
author | Andrew Lee <anwlee@google.com> | 2015-10-19 23:57:25 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-10-20 14:18:18 -0700 |
commit | b980fc4386cdc24a605fc682d0fef0c5dc54c327 (patch) | |
tree | 63d6f383e5d7da937c8abc7a001c447db64d0cdf /src/com/android/dialer/calllog/CallLogAdapter.java | |
parent | d0a5d1421e52caad8073c3e08fbb645c069344df (diff) |
Add setting for hiding blocked calls.
+ Add settings switch to blocked number settings.
+ Add utility for checking/setting whether calls should be blocked.
+ Filter out blocked calls in call log query, if appropriate.
+ Refresh call log fragment after a change in setting.
Followup work: delete voicemails for calls by blocked numbers after
the time when the user blocked them.
Bug: 24134270
Change-Id: I85088697559ef6fb446b82617f14f1c6fa893df1
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogAdapter.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAdapter.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 0ee7e935d..3dccf27bb 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -260,10 +260,11 @@ public class CallLogAdapter extends GroupingListAdapter mCallLogListItemHelper = new CallLogListItemHelper(phoneCallDetailsHelper, resources, mTelecomCallLogCache); mCallLogGroupBuilder = new CallLogGroupBuilder(this); - mPrefs = PreferenceManager.getDefaultSharedPreferences(context); - maybeShowVoicemailPromoCard(); mFilteredNumberAsyncQueryHandler = new FilteredNumberAsyncQueryHandler(mContext.getContentResolver()); + + mPrefs = PreferenceManager.getDefaultSharedPreferences(context); + maybeShowVoicemailPromoCard(); } public void onSaveInstanceState(Bundle outState) { @@ -306,7 +307,7 @@ public class CallLogAdapter extends GroupingListAdapter mBlockedIdCache.clear(); } - public void startCache() { + public void onResume() { if (PermissionsUtil.hasPermission(mContext, android.Manifest.permission.READ_CONTACTS)) { mContactInfoCache.start(); } |