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
b536733c
Commit
b536733c
authored
Sep 26, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
0c88bda6
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
40 additions
and
16 deletions
+40
-16
AppConfig.java
.../src/main/java/com/duben/dayplaylet/common/AppConfig.java
+1
-0
NineActivity.kt
...in/java/com/duben/dayplaylet/ui/activitys/NineActivity.kt
+4
-3
MainFragment.kt
...ain/java/com/duben/dayplaylet/ui/fragment/MainFragment.kt
+2
-6
MusicFragment.kt
...in/java/com/duben/dayplaylet/ui/fragment/MusicFragment.kt
+7
-0
MyFragment.kt
.../main/java/com/duben/dayplaylet/ui/fragment/MyFragment.kt
+1
-0
VideoRewardDialog.kt
...java/com/duben/dayplaylet/ui/widgets/VideoRewardDialog.kt
+1
-1
DramaApiDetailActivity.kt
.../com/duben/dayplaylet/video/csj/DramaApiDetailActivity.kt
+17
-2
shape_draw_adapter.xml
video/app/src/main/res/drawable/shape_draw_adapter.xml
+2
-2
shape_draw_adapter_none.xml
video/app/src/main/res/drawable/shape_draw_adapter_none.xml
+2
-2
colors.xml
video/app/src/main/res/values/colors.xml
+3
-0
No files found.
video/app/src/main/java/com/duben/dayplaylet/common/AppConfig.java
View file @
b536733c
...
...
@@ -9,6 +9,7 @@ public class AppConfig {
public
static
boolean
app_updateing
=
false
;
public
static
boolean
mainShowHalfAd
=
false
;
public
static
boolean
mainMusicRefresh
=
false
;
public
static
int
fragmentClickFlag
=
0
;
public
static
int
riskPercentage
=
0
;
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/activitys/NineActivity.kt
View file @
b536733c
...
...
@@ -15,6 +15,7 @@ import com.duben.dayplaylet.ad.AdManager
import
com.duben.dayplaylet.ad.AdStatusListener
import
com.duben.dayplaylet.ad.NoPreAdManager
import
com.duben.dayplaylet.ad.half.HalfScreenManager
import
com.duben.dayplaylet.common.AppConfig
import
com.duben.dayplaylet.common.Constant
import
com.duben.dayplaylet.manager.AlipayAuthManager
import
com.duben.dayplaylet.manager.AppHttpManager
...
...
@@ -93,11 +94,11 @@ class NineActivity : BaseActivity(), View.OnClickListener {
when
(
v
.
id
)
{
R
.
id
.
iv_nine_back
->
{
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
AppConfig
.
mainMusicRefresh
=
true
refreshTaskCount
()
},
500
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
finish
()
},
500
)
}
R
.
id
.
iv_nine_next
->
{
isClickFlag
=
true
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/MainFragment.kt
View file @
b536733c
...
...
@@ -182,9 +182,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
Constant
.
CARRIERTYPE_REWARD_FIRST
->
{
val
tempCoin
=
userInfo
?.
rewardCoin
?:
0
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
if
(
tempCoin
==
0
)
{
tv_cash
.
text
=
"18.88元"
}
ConsumerToastUtil
.
showAwardText
(
requireContext
(),
tempCoin
,
0
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
addAnimation
(
iv_main_tempanim
,
iv_cash
,
R
.
mipmap
.
ic_redpkg
)
...
...
@@ -199,9 +197,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
},
300
)
},
1400
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
if
(
tempCoin
==
0
)
{
tv_cash
.
text
=
"18.88元"
}
showSignDialog
()
},
2000
)
},
300
)
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/MusicFragment.kt
View file @
b536733c
...
...
@@ -121,6 +121,13 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView, View.OnClickListener {
MyExpressManager
.
instance
.
preLoadAd
()
musicPresenter
.
rdSongMsg
()
if
(
AppConfig
.
mainMusicRefresh
)
{
AppConfig
.
mainMusicRefresh
=
false
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
musicPresenter
.
rdSongMsg
()
},
1500
)
}
}
}
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/fragment/MyFragment.kt
View file @
b536733c
...
...
@@ -105,6 +105,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_FOUR
)
{
if
(
AntiShake
.
check
(
tv_my_id
?.
id
))
return
AppConfig
.
mainShowHalfAd
=
false
MyExpressManager
.
instance
.
preLoadAd
()
if
(!
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/widgets/VideoRewardDialog.kt
View file @
b536733c
...
...
@@ -74,7 +74,7 @@ class VideoRewardDialog(
pb
.
progress
=
currentCash
.
toInt
()
tvStr
.
text
=
"${currentCash}/100"
ibClose
.
setOnClickListener
{
dismiss
()
}
ibClose
.
setOnClickListener
(
listener
)
ll
.
setOnClickListener
(
listener
)
playFingerAnim
(
lav
)
...
...
video/app/src/main/java/com/duben/dayplaylet/video/csj/DramaApiDetailActivity.kt
View file @
b536733c
...
...
@@ -203,9 +203,15 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
override
fun
onResume
()
{
super
.
onResume
()
dpWidget
?.
fragment
?.
onResume
()
videoPresenter
.
rdVedioMsg
()
}
override
fun
onPause
()
{
super
.
onPause
()
dpWidget
?.
fragment
?.
onPause
()
}
private
fun
isLockIndex
():
Boolean
{
return
mCurrentIndex
>
mInitUnlockIndex
}
...
...
@@ -539,9 +545,18 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
object
:
DialogListener
()
{
override
fun
onClick
(
dialog
:
Dialog
?,
v
:
View
?)
{
super
.
onClick
(
dialog
,
v
)
when
(
v
?.
id
)
{
R
.
id
.
ll
->
{
dialog
?.
dismiss
()
showAd
(
Constant
.
CARRIERTYPE_VEDIO
)
}
R
.
id
.
ib_close
->
{
dialog
?.
dismiss
()
dpWidget
?.
fragment
?.
onResume
()
}
}
}
}
)
...
...
video/app/src/main/res/drawable/shape_draw_adapter.xml
View file @
b536733c
...
...
@@ -3,8 +3,8 @@
android:shape=
"rectangle"
>
<!-- 填充的颜色 -->
<stroke
android:width=
"
1
dp"
android:color=
"@color/
red
"
/>
android:width=
"
2
dp"
android:color=
"@color/
color_F8B243
"
/>
<solid
android:color=
"@color/white"
/>
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
...
...
video/app/src/main/res/drawable/shape_draw_adapter_none.xml
View file @
b536733c
...
...
@@ -3,8 +3,8 @@
android:shape=
"rectangle"
>
<!-- 填充的颜色 -->
<stroke
android:width=
"
1
dp"
android:color=
"@color/
graya
"
/>
android:width=
"
2
dp"
android:color=
"@color/
color_C6C6C6
"
/>
<solid
android:color=
"@color/white"
/>
<!-- 设置按钮的四个角为弧形 -->
...
...
video/app/src/main/res/values/colors.xml
View file @
b536733c
...
...
@@ -41,5 +41,8 @@
<color
name=
"color_50FFFC9F"
>
#80FFFC9F
</color>
<color
name=
"color_8D8F90"
>
#7F8182
</color>
<color
name=
"color_F8B243"
>
#F8B243
</color>
<color
name=
"color_C6C6C6"
>
#C6C6C6
</color>
</resources>
\ No newline at end of file
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