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
75a7604c
Commit
75a7604c
authored
Sep 07, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加猜歌关闭恢复界面逻辑
parent
837407fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
5 deletions
+27
-5
MusicFragment.kt
...ain/java/com/mints/helivideo/ui/fragment/MusicFragment.kt
+26
-4
MyFragment.kt
...c/main/java/com/mints/helivideo/ui/fragment/MyFragment.kt
+1
-1
No files found.
video/app/src/main/java/com/mints/helivideo/ui/fragment/MusicFragment.kt
View file @
75a7604c
...
...
@@ -9,6 +9,8 @@ import androidx.annotation.Nullable
import
androidx.fragment.app.Fragment
import
com.bytedance.sdk.dp.*
import
com.mints.helivideo.R
import
com.mints.helivideo.common.AppConfig
import
com.mints.helivideo.common.Constant
import
com.mints.helivideo.manager.DPHolder
import
com.mints.helivideo.ui.fragment.base.LazyLoadBaseFragment
import
com.mints.helivideo.utils.LogUtil
...
...
@@ -31,19 +33,39 @@ class MusicFragment : LazyLoadBaseFragment() {
if
(
DPSdk
.
isStartSuccess
())
{
//初始化draw组件
initDrawWidget
()
mDrawFragment
=
mIDPWidget
!!
.
getFragment
()
mDrawFragment
=
mIDPWidget
?.
getFragment
()
getSupportFragmentManager
().
beginTransaction
()
.
replace
(
R
.
id
.
draw_style1_frame
,
mDrawFragment
!!
)
.
commitAllowingStateLoss
();
}
}
override
fun
onFragmentResume
()
{
super
.
onFragmentResume
()
mIDPWidget
?.
resumeForWatchTogether
()
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_TWO
)
{
mIDPWidget
?.
fragment
?.
onResume
()
mIDPWidget
?.
fragment
?.
userVisibleHint
=
true
}
}
override
fun
onFragmentPause
()
{
super
.
onFragmentPause
()
mIDPWidget
?.
pauseForWatchTogether
()
mIDPWidget
?.
fragment
?.
onPause
()
mIDPWidget
?.
fragment
?.
userVisibleHint
=
false
}
override
fun
onHiddenChanged
(
hidden
:
Boolean
)
{
super
.
onHiddenChanged
(
hidden
)
mIDPWidget
?.
fragment
?.
onHiddenChanged
(
hidden
)
}
override
fun
setUserVisibleHint
(
isVisibleToUser
:
Boolean
)
{
super
.
setUserVisibleHint
(
isVisibleToUser
)
// dpWidget?.fragment?.userVisibleHint = isVisibleToUser
}
private
fun
initDrawWidget
()
{
...
...
@@ -53,7 +75,7 @@ class MusicFragment : LazyLoadBaseFragment() {
).
liveNativeAdCodeId
(
"947474068"
)
.
adOffset
(
0
)
//单位 dp,为 0 时可以不设置
.
quizMode
(
1
)
.
hideClose
(
fals
e
,
null
)
.
hideClose
(
tru
e
,
null
)
.
listener
(
object
:
IDPDrawListener
()
{
override
fun
onDPRefreshFinish
()
{
LogUtil
.
d
(
TAG
,
...
...
video/app/src/main/java/com/mints/helivideo/ui/fragment/MyFragment.kt
View file @
75a7604c
...
...
@@ -129,7 +129,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
readyGo
(
FeedbackActivity
::
class
.
java
)
}
R
.
id
.
ll_contactus
->
{
(
requireActivity
()
as
MainActivity
).
backPhoneDialog
()
//
(requireActivity() as MainActivity).backPhoneDialog()
}
R
.
id
.
ll_my_payrecord
->
{
}
...
...
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