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
82920b72
Commit
82920b72
authored
Sep 26, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
47e43179
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
ForegroundOrBackground.java
...va/com/duben/dayplaylet/utils/ForegroundOrBackground.java
+5
-1
DramaApiDetailActivity.kt
.../com/duben/dayplaylet/video/csj/DramaApiDetailActivity.kt
+1
-0
dialog_video_lock.xml
video/app/src/main/res/layout/dialog_video_lock.xml
+3
-3
fragment_draw.xml
video/app/src/main/res/layout/fragment_draw.xml
+4
-4
No files found.
video/app/src/main/java/com/duben/dayplaylet/utils/ForegroundOrBackground.java
View file @
82920b72
...
@@ -25,6 +25,7 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -25,6 +25,7 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
private
static
ForegroundOrBackground
instance
;
private
static
ForegroundOrBackground
instance
;
private
int
count
=
0
;
private
int
count
=
0
;
private
long
activityStoppedTime
=
0
;
private
long
activityStoppedTime
=
0
;
private
int
tempAlipay
=
0
;
//获取当前最上层的activity
//获取当前最上层的activity
private
static
WeakReference
<
Activity
>
app_activity
;
private
static
WeakReference
<
Activity
>
app_activity
;
...
@@ -101,7 +102,10 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -101,7 +102,10 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
// if (diffInSeconds >= 10 && SplashManager.INSTANCE.isSuccessStatus()) {
// if (diffInSeconds >= 10 && SplashManager.INSTANCE.isSuccessStatus()) {
//支付宝授权时不弹
//支付宝授权时不弹
if
(
AppConfig
.
alipayBackFalg
)
{
if
(
AppConfig
.
alipayBackFalg
)
{
AppConfig
.
alipayBackFalg
=
false
;
tempAlipay
=
tempAlipay
+
1
;
if
(
tempAlipay
==
2
){
AppConfig
.
alipayBackFalg
=
false
;
}
}
else
{
}
else
{
activity
.
startActivity
(
new
Intent
(
activity
,
SplashBackActivity
.
class
));
activity
.
startActivity
(
new
Intent
(
activity
,
SplashBackActivity
.
class
));
}
}
...
...
video/app/src/main/java/com/duben/dayplaylet/video/csj/DramaApiDetailActivity.kt
View file @
82920b72
...
@@ -524,6 +524,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
...
@@ -524,6 +524,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
SpanUtils
()
SpanUtils
()
.
append
(
"解锁"
)
.
append
(
"解锁"
)
.
append
(
" $lockSet "
)
.
append
(
" $lockSet "
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
32
))
.
setForegroundColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
red
))
.
setForegroundColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
red
))
.
append
(
"集剧情"
)
.
append
(
"集剧情"
)
.
create
(),
.
create
(),
...
...
video/app/src/main/res/layout/dialog_video_lock.xml
View file @
82920b72
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"1
3
6dp"
android:layout_marginTop=
"1
2
6dp"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"22sp"
android:textSize=
"22sp"
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"
20
dp"
>
android:layout_marginBottom=
"
12
dp"
>
<ImageView
<ImageView
android:id=
"@+id/iv_tips"
android:id=
"@+id/iv_tips"
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
" 10 "
android:text=
" 10 "
android:textColor=
"@color/red"
android:textColor=
"@color/red"
android:textSize=
"2
0
sp"
android:textSize=
"2
6
sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@id/tv_info3"
app:layout_constraintEnd_toStartOf=
"@id/tv_info3"
app:layout_constraintStart_toEndOf=
"@id/tv_info1"
app:layout_constraintStart_toEndOf=
"@id/tv_info1"
...
...
video/app/src/main/res/layout/fragment_draw.xml
View file @
82920b72
...
@@ -49,10 +49,10 @@
...
@@ -49,10 +49,10 @@
android:id=
"@+id/ry_draw"
android:id=
"@+id/ry_draw"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
layout_gravity=
"center_horizontal
"
android:
minHeight=
"130dp
"
android:layout_
marginTop=
"20dp
"
android:layout_
gravity=
"center
"
android:layout_marginTop=
"4dp"
android:layout_marginBottom=
"
20
dp"
/>
android:layout_marginBottom=
"
4
dp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
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