|
|
@ -251,6 +251,16 @@ public class MainActivity extends AppCompatActivity { |
|
|
|
* 检查是否可以自动登录 |
|
|
|
*/ |
|
|
|
private void checkAutoLogin() { |
|
|
|
// 检查是否是从解锁离开人脸识别界面返回的,如果是则不执行自动登录 |
|
|
|
Intent intent = getIntent(); |
|
|
|
boolean fromUnlockLeave = intent != null && intent.getBooleanExtra("from_unlock_leave", false); |
|
|
|
if (fromUnlockLeave) { |
|
|
|
android.util.Log.d("MainActivity", "从解锁离开返回,跳过自动登录逻辑"); |
|
|
|
// 清除标志,防止重复处理 |
|
|
|
intent.removeExtra("from_unlock_leave"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (loginDataManager.canAutoLogin()) { |
|
|
|
android.util.Log.d("MainActivity", "检测到有效的本地登录数据,尝试自动登录, isAutoStart: " + isAutoStart); |
|
|
|
|
|
|
|