Adding in a boilerplate for the ideal isAtLeast method
Bug: 33090697
Test: None (comment only change)
Change-Id: Ifb4206a4d7da6de5eef2fbd11e8d0a5c753ef2a0
diff --git a/compat/gingerbread/android/support/v4/os/BuildCompat.java b/compat/gingerbread/android/support/v4/os/BuildCompat.java
index 3c73e4d..a49b5aa 100644
--- a/compat/gingerbread/android/support/v4/os/BuildCompat.java
+++ b/compat/gingerbread/android/support/v4/os/BuildCompat.java
@@ -27,6 +27,12 @@
public class BuildCompat {
private BuildCompat() {
}
+ /* Boilerplate for isAtLeast${PLATFORM}:
+ * public static boolean isAtLeast*() {
+ * return !"REL".equals(VERSION.CODENAME)
+ * && ("${PLATFORM}".equals(VERSION.CODENAME) || VERSION.CODENAME.startsWith("${PLATFORM}MR"));
+ * }
+ */
/**
* Check if the device is running on the Android N release or newer.