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

Commit d1b5c88c authored by David Duarte's avatar David Duarte
Browse files

Partially revert "Ignore incorrect NewApi Lint warning for ENTERPRISE_CONTENT_URI"

This partially reverts commit dff32a90.

Reason for revert: b/193460475 is fixed
Bug: 193460475

Change-Id: I01bd524ac05d8bc27ad2347d1430ad1c54a3744f
parent 9d8ec8a5
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;