From ceb7e721b1882b21814cb4333f77f93c0c13ed51 Mon Sep 17 00:00:00 2001 From: PorygonZRocks Date: Sun, 23 Dec 2018 11:03:47 -0600 Subject: [PATCH] Add version check to skip first screen on KK- --- .../src/main/java/org/microg/gms/auth/login/LoginActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/play-services-core/src/main/java/org/microg/gms/auth/login/LoginActivity.java b/play-services-core/src/main/java/org/microg/gms/auth/login/LoginActivity.java index 7e50dce2..140eb164 100644 --- a/play-services-core/src/main/java/org/microg/gms/auth/login/LoginActivity.java +++ b/play-services-core/src/main/java/org/microg/gms/auth/login/LoginActivity.java @@ -73,6 +73,7 @@ import static android.view.View.VISIBLE; import static android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT; import static org.microg.gms.common.Constants.GMS_PACKAGE_NAME; import static org.microg.gms.common.Constants.MAX_REFERENCE_VERSION; +import android.os.Build; public class LoginActivity extends AssistantActivity { public static final String TMPL_NEW_ACCOUNT = "new_account"; @@ -131,6 +132,8 @@ public class LoginActivity extends AssistantActivity { } else { retrieveRtToken(getIntent().getStringExtra(EXTRA_TOKEN)); } + } else if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { + init(); } else { setMessage(R.string.auth_before_connect); setBackButtonText(android.R.string.cancel);