Commit aff60f65 authored by Tobias Sargeant's avatar Tobias Sargeant Committed by Commit Bot

Add markers allowing isAtLeast* methods to be automatically generated.

Change-Id: I38b53feb11cd001a87633739d756f4b4f2a40c9e
Reviewed-on: https://chromium-review.googlesource.com/788856
Commit-Queue: Tobias Sargeant <tobiasjs@chromium.org>
Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519902}
parent 04282df2
......@@ -8,6 +8,7 @@ import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Build;
import android.os.Build.VERSION;
import android.text.TextUtils;
import org.chromium.base.annotations.CalledByNative;
......@@ -124,6 +125,9 @@ public class BuildInfo {
return "eng".equals(Build.TYPE) || "userdebug".equals(Build.TYPE);
}
// The markers Begin:BuildCompat and End:BuildCompat delimit code
// that is autogenerated from Android sources.
// Begin:BuildCompat O,OMR1,P
/**
* @return Whether the current device is running Android O release or newer.
*
......@@ -131,6 +135,7 @@ public class BuildInfo {
*/
@Deprecated
public static boolean isAtLeastO() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.O;
return VERSION.SDK_INT >= Build.VERSION_CODES.O;
}
// End:BuildCompat
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment