summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/calllog
diff options
context:
space:
mode:
authorBrandon Maxwell <maxwelb@google.com>2016-03-06 15:58:33 -0800
committerBrandon Maxwell <maxwelb@google.com>2016-03-14 17:16:25 -0700
commit69be29f2251e28a2685ed5b44bfb438ddea38ff8 (patch)
tree98e19063f3b797eb53f381d11932bcbd73021e7e /src/com/android/dialer/calllog
parentc6ed16091cf15c3546d3bd1188e14b8aef935280 (diff)
Implemented blocked numbers migration
+ After upgrading to N, users need to be able to migrate their blocked number list from the Dialer solution to the framework solution. Prior to migrating, when a user attempts to block a number, a Dialog is shown prompting them to migrate their numbers. Users must migrate to continue adding numbers to their block list. Users that decide not to migrate will still have calls and voicemails blocked for numbers that are currently on their block list. + This CL implements the logic which copies users' blocked numbers lists to the framework solution. Bug: 26664600 Change-Id: I44dee1306b5daca6f558c81b2b58252b35013e09
Diffstat (limited to 'src/com/android/dialer/calllog')
-rw-r--r--src/com/android/dialer/calllog/CallLogListItemViewHolder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/CallLogListItemViewHolder.java b/src/com/android/dialer/calllog/CallLogListItemViewHolder.java
index de9bf7739..750914bdf 100644
--- a/src/com/android/dialer/calllog/CallLogListItemViewHolder.java
+++ b/src/com/android/dialer/calllog/CallLogListItemViewHolder.java
@@ -373,8 +373,8 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder
int resId = item.getItemId();
if (resId == R.id.context_menu_block_number) {
FilteredNumberCompat
- .showBlockNumberDialogFlow(blockId, number, countryIso, displayNumber,
- R.id.floating_action_button_container,
+ .showBlockNumberDialogFlow(mContext.getContentResolver(), blockId, number,
+ countryIso, displayNumber, R.id.floating_action_button_container,
((Activity) mContext).getFragmentManager(),
mFilteredNumberDialogCallback);
return true;