From 3ec5d25470379acbbf3bb2bcc83e5e897a22a59d Mon Sep 17 00:00:00 2001 From: Brandon Maxwell Date: Thu, 17 Mar 2016 16:01:57 -0700 Subject: Only allow primary users to block numbers + By design, only the primary user has the capability to block numbers. + This CL ensures that secondary users don't see the option to block numbers in the call log or call details. Change-Id: I576925510cfbef417c16910218014d9f7b7dd2a0 Fixes: 27366206 --- src-pre-N/com/android/dialer/compat/BlockedNumbersSdkCompat.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src-pre-N/com/android') diff --git a/src-pre-N/com/android/dialer/compat/BlockedNumbersSdkCompat.java b/src-pre-N/com/android/dialer/compat/BlockedNumbersSdkCompat.java index cbdc59516..559d71899 100644 --- a/src-pre-N/com/android/dialer/compat/BlockedNumbersSdkCompat.java +++ b/src-pre-N/com/android/dialer/compat/BlockedNumbersSdkCompat.java @@ -16,6 +16,7 @@ package com.android.dialer.compat; +import android.content.Context; import android.net.Uri; public class BlockedNumbersSdkCompat { @@ -27,4 +28,8 @@ public class BlockedNumbersSdkCompat { public static final String COLUMN_ORIGINAL_NUMBER = null; public static final String E164_NUMBER = null; + + public static boolean canCurrentUserBlockNumbers(Context context) { + return false; + } } -- cgit v1.2.3