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

Commit 8a8b01c2 authored by Tingting Wang's avatar Tingting Wang Committed by android-build-merger
Browse files

Merge \"Stop relying on BuildCompat to tell whether N+ devices.\" into nyc-mr1-dev

am: d9cbd8ae8e

Change-Id: I0872751bf946d24f2d57f0ee92cce66dce7c957b
parents 8ec42794 159b1c3c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,9 +21,9 @@ import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Build.VERSION;
import android.provider.ContactsContract.CommonDataKinds.Im;
import android.support.annotation.IntDef;
import android.support.v4.os.BuildCompat;
import android.provider.ContactsContract.DisplayPhoto;
import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
@@ -53,7 +53,7 @@ public class ContactsUtils {

    private static int sThumbnailSize = -1;

    public static final boolean FLAG_N_FEATURE = BuildCompat.isAtLeastN();
    public static final boolean FLAG_N_FEATURE = Build.VERSION.SDK_INT >= 24;

    // TODO find a proper place for the canonical version of these
    public interface ProviderNames {
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ public final class CompatUtils {
     * false} otherwise.
     */
    public static boolean isNCompatible() {
        return BuildCompat.isAtLeastN();
        return VERSION.SDK_INT >= 24;
    }

    /**