commit | 38f1fa2be10c7a8c519baa129e7c72c521c4c018 | [log] [tgz] |
---|---|---|
author | Hyunyoung Song <hyunyoungs@google.com> | Thu May 16 17:21:33 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Thu May 16 17:21:33 2019 -0700 |
tree | bb2446ff04b3c59d497981e457901accf76c966c | |
parent | 59657191630b03b9f31e52254326bfd863eef5cb [diff] | |
parent | d45611ae8a8acd4d4bb7e73215ff45f38cb6c5d1 [diff] |
WP2 BuildCompat library should track SDK INT instead of CODENAME Bug: 132340681 am: d45611ae8a Change-Id: I6295c698b4d3219002b280cf4fd08f29d5b1ad3d
diff --git a/src/com/android/wallpaper/compat/BuildCompat.java b/src/com/android/wallpaper/compat/BuildCompat.java index 80bc906..9cd67c3 100755 --- a/src/com/android/wallpaper/compat/BuildCompat.java +++ b/src/com/android/wallpaper/compat/BuildCompat.java
@@ -96,8 +96,6 @@ } public static boolean isAtLeastQ() { - return Build.VERSION.CODENAME.length() == 1 - && Build.VERSION.CODENAME.charAt(0) >= 'Q' - && Build.VERSION.CODENAME.charAt(0) <= 'Z'; + return sSdk >= VERSION_CODES.Q; } }