Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec3cd0ad authored by David Duarte's avatar David Duarte Committed by Android (Google) Code Review
Browse files

Merge "Partially revert "Ignore incorrect NewApi Lint warning for...

Merge "Partially revert "Ignore incorrect NewApi Lint warning for ENTERPRISE_CONTENT_URI"" into udc-dev
parents 7fb82a16 d1b5c88c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.bluetooth.util;

import android.annotation.SuppressLint;
import android.app.admin.DevicePolicyManager;
import android.content.Context;
import android.net.Uri;
@@ -48,8 +47,6 @@ public final class DevicePolicyUtils {
     * and the policy allows, it will be a URI that supports the managed profile.
     */
    // TODO: Make primary profile can also support getBluetoothContactSharingDisabled()
    // TODO(b/193460475): Android Lint handles change from SystemApi to public incorrectly
    @SuppressLint("NewApi")
    public static Uri getEnterprisePhoneUri(Context context) {
        return isBluetoothWorkContactSharingDisabled(context) ? Phone.CONTENT_URI
                : Phone.ENTERPRISE_CONTENT_URI;