Bug 1557203 - AndroidQ has final APIs. Update the feature29Plus check; r=VladBaicu

With Beta4 AndroidQ now ships with final APIs so the previous check we used,
VERSION.CODENAME now returns REL instead of Q.
But final APIs means AndroidQ will not share API level 28 with AndroidP anymore
so we can finally check for Build.VERSION.SDK_INT.

Differential Revision: https://phabricator.services.mozilla.com/D33906

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Petru Lingurar 2019-06-06 11:56:02 +00:00
Родитель 532113a26a
Коммит 834812f141
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -57,8 +57,7 @@ public class AppConstants {
public static final boolean feature23Plus = MIN_SDK_VERSION >= 23 || (MAX_SDK_VERSION >= 23 && Build.VERSION.SDK_INT >= 23);
public static final boolean feature24Plus = MIN_SDK_VERSION >= 24 || (MAX_SDK_VERSION >= 24 && Build.VERSION.SDK_INT >= 24);
public static final boolean feature26Plus = MIN_SDK_VERSION >= 26 || (MAX_SDK_VERSION >= 26 && Build.VERSION.SDK_INT >= 26);
// Given that Android Q is not yet released it shares API level 28 with Android P
public static final boolean feature29Plus = BuildCompat.isAtLeastQ();
public static final boolean feature29Plus = MIN_SDK_VERSION >= 29 || (MAX_SDK_VERSION >= 29 && Build.VERSION.SDK_INT >= 29);
/*
* If our MIN_SDK_VERSION is 14 or higher, we must be an ICS device.