Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vediosocial
Project
Project
Details
Activity
Releases
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
android
android_vediosocial
Commits
9b389545
Commit
9b389545
authored
Feb 14, 2025
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
a30e662c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
MainActivity.kt
.../java/com/duben/loveplayletd/ui/activitys/MainActivity.kt
+16
-4
No files found.
video/app/src/main/java/com/duben/loveplayletd/ui/activitys/MainActivity.kt
View file @
9b389545
...
...
@@ -148,13 +148,13 @@ class MainActivity : BaseActivity(), View.OnClickListener, MainActView {
override
fun
onClick
(
view
:
View
)
{
if
(
UserManager
.
getInstance
().
newFlag
)
{
if
(!
UserHelper
.
instance
.
isUserHaveBasic
())
return
}
when
(
view
.
id
)
{
R
.
id
.
tab_rl_video
->
clickTab1Layout
()
R
.
id
.
tab_rl_square
->
{
if
(
UserManager
.
getInstance
().
newFlag
)
{
if
(!
UserHelper
.
instance
.
isUserHaveBasic
())
return
}
if
(
showAuthDialog1
)
{
// 弹出真人认证
UserHelper
.
instance
.
isUserAuth
()
...
...
@@ -163,9 +163,17 @@ class MainActivity : BaseActivity(), View.OnClickListener, MainActView {
clickTab2Layout
()
}
R
.
id
.
tab_rl_invite
->
{
if
(
UserManager
.
getInstance
().
newFlag
)
{
if
(!
UserHelper
.
instance
.
isUserHaveBasic
())
return
}
clickTab3Layout
()
}
R
.
id
.
tab_rl_msg
->
{
if
(
UserManager
.
getInstance
().
newFlag
)
{
if
(!
UserHelper
.
instance
.
isUserHaveBasic
())
return
}
if
(
showAuthDialog2
)
{
// 弹出真人认证
UserHelper
.
instance
.
isUserAuth
()
...
...
@@ -174,6 +182,10 @@ class MainActivity : BaseActivity(), View.OnClickListener, MainActView {
clickTab4Layout
()
}
R
.
id
.
tab_rl_my
->
{
if
(
UserManager
.
getInstance
().
newFlag
)
{
if
(!
UserHelper
.
instance
.
isUserHaveBasic
())
return
}
if
(
UserManager
.
getInstance
().
newFlag
){
if
(
showAuthDialog3
)
{
// 弹出真人认证
...
...
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