Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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_vedio
Commits
f892c982
Commit
f892c982
authored
Sep 26, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
82920b72
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
MainFragment.kt
...ain/java/com/duben/dayplaylet/ui/fragment/MainFragment.kt
+5
-5
RedpkgFragment.kt
...n/java/com/duben/dayplaylet/ui/fragment/RedpkgFragment.kt
+1
-1
ForegroundOrBackground.java
...va/com/duben/dayplaylet/utils/ForegroundOrBackground.java
+3
-3
dialog_video_lock.xml
video/app/src/main/res/layout/dialog_video_lock.xml
+1
-0
No files found.
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/MainFragment.kt
View file @
f892c982
...
...
@@ -317,7 +317,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
if
(
data
!=
null
&&
data
.
signMsg
!=
null
)
{
signMsg
=
data
.
signMsg
}
if
(
signMsg
==
null
)
{
if
(
data
?.
signMsg
==
null
)
{
iv_main_sign
.
visibility
=
View
.
GONE
if
(!
isNoSignFlag
&&
!
isShowSignFlag
)
{
isNoSignFlag
=
true
...
...
@@ -325,10 +325,10 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
}
}
else
{
iv_main_sign
.
visibility
=
View
.
VISIBLE
tv_main_signcash
.
text
=
"${signMsg!!.sumCash}元"
AppConfig
.
signCash1
=
FormatUtil
.
sub
(
signMsg
!!
.
surCash
,
signMsg
!!
.
cashCashFirst
)
AppConfig
.
signCash2
=
FormatUtil
.
sub
(
AppConfig
.
signCash1
,
signMsg
!!
.
cashCashSecond
)
if
(
signMsg
!!
.
signDay
<=
7
)
{
tv_main_signcash
.
text
=
"${
data!!.
signMsg!!.sumCash}元"
AppConfig
.
signCash1
=
FormatUtil
.
sub
(
data
!!
.
signMsg
!!
.
surCash
,
data
!!
.
signMsg
!!
.
cashCashFirst
)
AppConfig
.
signCash2
=
FormatUtil
.
sub
(
AppConfig
.
signCash1
,
data
!!
.
signMsg
!!
.
cashCashSecond
)
if
(
data
!!
.
signMsg
!!
.
signDay
<=
7
)
{
if
(!
isShowSignFlag
&&
userInfo
?.
rewardFirst
!=
0
)
{
isShowSignFlag
=
true
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/RedpkgFragment.kt
View file @
f892c982
...
...
@@ -152,7 +152,7 @@ class RedpkgFragment : LazyLoadBaseFragment(), View.OnClickListener, RedpkgView
}
else
{
(
requireActivity
()
as
MainActivity
).
showTabView
()
scrollBottom
()
et_input
?.
request
Focus
()
et_input
?.
clear
Focus
()
}
}
}
...
...
video/app/src/main/java/com/duben/dayplaylet/utils/ForegroundOrBackground.java
View file @
f892c982
...
...
@@ -25,7 +25,7 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
private
static
ForegroundOrBackground
instance
;
private
int
count
=
0
;
private
long
activityStoppedTime
=
0
;
private
int
tempAlipay
=
0
;
private
int
tempAlipay
=
0
;
//获取当前最上层的activity
private
static
WeakReference
<
Activity
>
app_activity
;
...
...
@@ -102,8 +102,8 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
// if (diffInSeconds >= 10 && SplashManager.INSTANCE.isSuccessStatus()) {
//支付宝授权时不弹
if
(
AppConfig
.
alipayBackFalg
)
{
tempAlipay
=
tempAlipay
+
1
;
if
(
tempAlipay
==
2
)
{
tempAlipay
=
tempAlipay
+
1
;
if
(
tempAlipay
>=
2
)
{
AppConfig
.
alipayBackFalg
=
false
;
}
}
else
{
...
...
video/app/src/main/res/layout/dialog_video_lock.xml
View file @
f892c982
...
...
@@ -65,6 +65,7 @@
android:text=
" 10 "
android:textColor=
"@color/red"
android:textSize=
"26sp"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@id/tv_info3"
app:layout_constraintStart_toEndOf=
"@id/tv_info1"
...
...
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