Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
26ebd735
Commit
26ebd735
authored
Jun 09, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/qj/fix_login' into 'release'
修复登录不进去首页 See merge request app_android_lib/YDL-Component!152
parents
543f778c
fdf63932
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
LoginUtils.kt
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
+7
-2
No files found.
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
View file @
26ebd735
package
com.yidianling.user
import
android.app.Activity
import
android.content.Intent
import
com.tencent.bugly.crashreport.CrashReport
import
com.ydl.ydlcommon.data.http.RxUtils
import
com.ydl.ydlcommon.utils.ActivityManager
...
...
@@ -21,7 +20,6 @@ import com.yidianling.user.route.UserIn
import
com.yidianling.user.safePrivate.FingerPrintCheckActivity
import
com.yidianling.user.safePrivate.FingerPrintUtil
import
com.yidianling.user.safePrivate.HandUnlockCheckActivity
import
com.yidianling.user.ui.collect.CollectSexAndBirthActivity
import
com.yidianling.user.ui.login.InputPassWordActivity
import
com.yidianling.user.ui.login.OneKeyLoginHelp
import
com.yidianling.user.ui.login.RegisterAndLoginActivity
...
...
@@ -130,7 +128,11 @@ object LoginUtils {
//这里不能引用到MainActivity 想别的办法
var
flag
=
0
//判断stack中activity是否属于登录相关的三个页面
var
containMainActivity
=
false
for
(
activity
in
ActivityManager
.
getInstance
().
getActivitys
())
{
if
(
activity
.
javaClass
.
name
==
"com.cxzapp.yidianling.activity.MainActivity"
)
{
containMainActivity
=
true
}
if
(
activity
is
RegisterAndLoginActivity
||
activity
is
VerificationCodeActivity
||
activity
is
InputPassWordActivity
...
...
@@ -148,6 +150,9 @@ object LoginUtils {
ActivityManager
.
getInstance
().
finishActivity
(
FingerPrintCheckActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
HandUnlockCheckActivity
::
class
.
java
)
FingerPrintUtil
.
instance
().
setCurrentUnLockTime
(
System
.
currentTimeMillis
())
if
(!
containMainActivity
)
{
UserIn
.
mainIntent
(
activity
)
}
}
else
{
ActivityManager
.
finishAll
()
if
(
StatusUtils
.
isFirstLogin
&&
StatusUtils
.
isFirstStartApp
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment