mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Version code cleanup
> Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
This commit is contained in:
@@ -34,9 +34,9 @@ public abstract class UserManagerCompat {
|
||||
public static UserManagerCompat getInstance(Context context) {
|
||||
synchronized (sInstanceLock) {
|
||||
if (sInstance == null) {
|
||||
if (Utilities.isLmpOrAbove()) {
|
||||
if (Utilities.ATLEAST_LOLLIPOP) {
|
||||
sInstance = new UserManagerCompatVL(context.getApplicationContext());
|
||||
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
||||
} else if (Utilities.ATLEAST_JB_MR1) {
|
||||
sInstance = new UserManagerCompatV17(context.getApplicationContext());
|
||||
} else {
|
||||
sInstance = new UserManagerCompatV16();
|
||||
|
||||
Reference in New Issue
Block a user