WallpaperManagerCompat: correct build version check

WallpaperManagerCompatVOMR1 is targeting API 27 (O MR1), but the
api guard is checking, if we are running API 26 (O) or above.

Correct the check to prevent using unavailable Wallpaper APIs.

Change-Id: I83cceee8eb61b2d74e647d473d7d560d00be14d3
(cherry picked from commit Iaf510bb79010e640db04adbbc2ee44de9abd6913)
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
This commit is contained in:
Jon Miranda
2018-04-18 11:44:48 -07:00
parent 5c3706c22a
commit 596d7f135d
@@ -31,7 +31,7 @@ public abstract class WallpaperManagerCompat {
if (sInstance == null) {
context = context.getApplicationContext();
if (Utilities.ATLEAST_OREO) {
if (Utilities.ATLEAST_OREO_MR1) {
try {
sInstance = new WallpaperManagerCompatVOMR1(context);
} catch (Throwable e) {