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
ee2e6acb
Commit
ee2e6acb
authored
Jan 26, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:第一次启动app并并登录,没有打开填写资料页面问题修复
parent
796f67fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
LoginUtils.kt
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
+2
-2
StatusUtils.java
m-user/src/main/java/com/yidianling/user/StatusUtils.java
+3
-4
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+0
-1
No files found.
m-user/src/main/java/com/yidianling/user/LoginUtils.kt
View file @
ee2e6acb
...
...
@@ -106,7 +106,7 @@ object LoginUtils {
val
size
=
ActivityManager
.
getActivitySize
()
if
(
size
<=
2
)
{
//当前stack只有两个页面,必然没有MainActivity
ActivityManager
.
finishAll
()
if
(
StatusUtils
.
isFirstLogin
&&
StatusUtils
.
isF
romGuide
)
{
if
(
StatusUtils
.
isFirstLogin
&&
StatusUtils
.
isF
irstStartApp
)
{
activity
.
startActivity
(
Intent
(
activity
,
CollectSexAndBirthActivity
::
class
.
java
))
}
else
{
UserIn
.
mainIntent
(
activity
)
...
...
@@ -135,7 +135,7 @@ object LoginUtils {
FingerPrintUtil
.
instance
().
setCurrentUnLockTime
(
System
.
currentTimeMillis
())
}
else
{
ActivityManager
.
finishAll
()
if
(
StatusUtils
.
isFirstLogin
&&
StatusUtils
.
isF
romGuide
)
{
if
(
StatusUtils
.
isFirstLogin
&&
StatusUtils
.
isF
irstStartApp
)
{
activity
.
startActivity
(
Intent
(
activity
,
CollectSexAndBirthActivity
::
class
.
java
))
}
else
{
UserIn
.
mainIntent
(
activity
)
...
...
m-user/src/main/java/com/yidianling/user/StatusUtils.java
View file @
ee2e6acb
...
...
@@ -10,8 +10,7 @@ public class StatusUtils {
* 是否是注册
*/
public
static
boolean
isFirstLogin
=
false
;
/**
* 是否是第一次打开App
*/
public
static
boolean
isFromGuide
=
false
;
// 是否第一次启动App
public
static
boolean
isFirstStartApp
=
false
;
}
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
ee2e6acb
...
...
@@ -137,7 +137,6 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
isBindPhone
=
intent
.
getBooleanExtra
(
BIND_PHONE
,
false
)
isFromGuide
=
intent
.
getBooleanExtra
(
IS_FROM_GUIDE
,
false
)
isFromOneKeyLogin
=
intent
.
getBooleanExtra
(
IS_FROM_ONE_KEY_LOGIN
,
false
)
StatusUtils
.
isFromGuide
=
isFromGuide
setWindowStatusBarColor
()
initAuthHelper
()
...
...
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