summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/CallDetailActivity.java
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/CallDetailActivity.java
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/CallDetailActivity.java')
-rw-r--r--src/com/android/dialer/CallDetailActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java
index d2cda92b1..6c8d7708a 100644
--- a/src/com/android/dialer/CallDetailActivity.java
+++ b/src/com/android/dialer/CallDetailActivity.java
@@ -375,8 +375,9 @@ public class CallDetailActivity extends AppCompatActivity
int resId = view.getId();
if (resId == R.id.call_detail_action_block) {
FilteredNumberCompat
- .showBlockNumberDialogFlow(mBlockedNumberId, mNumber, mDetails.countryIso,
- mDisplayNumber, R.id.call_detail, getFragmentManager(), this);
+ .showBlockNumberDialogFlow(mContext.getContentResolver(), mBlockedNumberId,
+ mNumber, mDetails.countryIso, mDisplayNumber, R.id.call_detail,
+ getFragmentManager(), this);
} else if (resId == R.id.call_detail_action_copy) {
ClipboardUtils.copyText(mContext, null, mNumber, true);
} else if (resId == R.id.call_detail_action_edit_before_call) {