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
private
static
ForegroundOrBackground
instance
;
private
int
count
=
0
;
private
long
activityStoppedTime
=
0
;
private
int
tempAlipay
=
0
;
//获取当前最上层的activity
private
static
WeakReference
<
Activity
>
app_activity
;
...
...
@@ -101,7 +102,10 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
// if (diffInSeconds >= 10 && SplashManager.INSTANCE.isSuccessStatus()) {
//支付宝授权时不弹
if
(
AppConfig
.
alipayBackFalg
)
{
AppConfig
.
alipayBackFalg
=
false
;
tempAlipay
=
tempAlipay
+
1
;
if
(
tempAlipay
==
2
){
AppConfig
.
alipayBackFalg
=
false
;
}
}
else
{
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
SpanUtils
()
.
append
(
"解锁"
)
.
append
(
" $lockSet "
)
.
setFontSize
(
BubbleUtils
.
sp2px
(
32
))
.
setForegroundColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
red
))
.
append
(
"集剧情"
)
.
create
(),
...
...
video/app/src/main/res/layout/dialog_video_lock.xml
View file @
82920b72
...
...
@@ -28,7 +28,7 @@
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"1
3
6dp"
android:layout_marginTop=
"1
2
6dp"
android:layout_marginBottom=
"10dp"
android:textColor=
"@color/black"
android:textSize=
"22sp"
...
...
@@ -37,7 +37,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"
20
dp"
>
android:layout_marginBottom=
"
12
dp"
>
<ImageView
android:id=
"@+id/iv_tips"
...
...
@@ -64,7 +64,7 @@
android:layout_height=
"wrap_content"
android:text=
" 10 "
android:textColor=
"@color/red"
android:textSize=
"2
0
sp"
android:textSize=
"2
6
sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@id/tv_info3"
app:layout_constraintStart_toEndOf=
"@id/tv_info1"
...
...
video/app/src/main/res/layout/fragment_draw.xml
View file @
82920b72
...
...
@@ -49,10 +49,10 @@
android:id=
"@+id/ry_draw"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:
layout_gravity=
"center_horizontal
"
android:layout_
marginTop=
"20dp
"
android:layout_marginBottom=
"
20
dp"
/>
android:
minHeight=
"130dp
"
android:layout_
gravity=
"center
"
android:layout_marginTop=
"4dp"
android:layout_marginBottom=
"
4
dp"
/>
<TextView
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