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
274da8b4
Commit
274da8b4
authored
Aug 16, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
304a686e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
861 deletions
+2
-861
MainExpressManager.kt
...va/com/duben/xixiplaylet/ad/express/MainExpressManager.kt
+0
-835
MovieFragment.kt
...n/java/com/duben/xixiplaylet/ui/fragment/MovieFragment.kt
+0
-23
MyFragment.kt
...main/java/com/duben/xixiplaylet/ui/fragment/MyFragment.kt
+0
-1
ShareSDK.xml
video/tmpmob/ShareSDK/assets/ShareSDK.xml
+2
-2
No files found.
video/app/src/main/java/com/duben/xixiplaylet/ad/express/MainExpressManager.kt
deleted
100644 → 0
View file @
304a686e
This diff is collapsed.
Click to expand it.
video/app/src/main/java/com/duben/xixiplaylet/ui/fragment/MovieFragment.kt
View file @
274da8b4
...
...
@@ -8,7 +8,6 @@ import androidx.fragment.app.Fragment
import
androidx.recyclerview.widget.LinearLayoutManager
import
com.duben.xixiplaylet.R
import
com.duben.xixiplaylet.ad.express.ExpressAdCallback
import
com.duben.xixiplaylet.ad.express.MainExpressManager
import
com.duben.xixiplaylet.common.Constant
import
com.duben.xixiplaylet.manager.LocalVedioManager
import
com.duben.xixiplaylet.mvp.model.*
...
...
@@ -77,8 +76,6 @@ class MovieFragment : LazyLoadBaseFragment(), PicContentView, OnLoadMoreListener
println
(
"mcg _______"
)
hotPage
=
1
srlMainPage
.
resetNoMoreData
()
MainExpressManager
.
instance
.
destroy
()
loadAd
()
picContentPresenter
.
getHomePageImageList
(
mType
,
hotPage
,
Constant
.
PAGE_SIZE
)
}
...
...
@@ -103,7 +100,6 @@ class MovieFragment : LazyLoadBaseFragment(), PicContentView, OnLoadMoreListener
if
(
data
.
list
.
size
<
Constant
.
PAGE_SIZE
)
{
srlMainPage
.
finishLoadMoreWithNoMoreData
()
}
else
{
loadAd
()
srlMainPage
.
finishLoadMore
()
}
hotStyleAdapter
.
addData
(
getAdapterData
(
data
.
list
))
...
...
@@ -146,24 +142,6 @@ class MovieFragment : LazyLoadBaseFragment(), PicContentView, OnLoadMoreListener
return
data
}
private
fun
loadAd
()
{
if
(
UserManager
.
getInstance
().
vipFlag
)
return
MainExpressManager
.
instance
.
loadAd
(
object
:
ExpressAdCallback
{
override
fun
loadSuccess
(
adView
:
FrameLayout
?)
{
}
override
fun
renderSuccess
(
adView
:
FrameLayout
?):
Boolean
{
adView
?.
let
{
addAdView
(
it
)
}
return
false
}
override
fun
loadFail
()
{
}
})
}
private
fun
addAdView
(
adView
:
FrameLayout
)
{
// 默认每各6个加1个
var
insertIndex
=
2
...
...
@@ -186,7 +164,6 @@ class MovieFragment : LazyLoadBaseFragment(), PicContentView, OnLoadMoreListener
override
fun
onDestroyView
()
{
super
.
onDestroyView
()
MainExpressManager
.
instance
.
destroy
()
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/xixiplaylet/ui/fragment/MyFragment.kt
View file @
274da8b4
...
...
@@ -83,7 +83,6 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_THREE
)
{
if
(
AntiShake
.
check
(
ll_my_record
?.
id
))
return
if
(!
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
myPresenter
.
showTurn
()
myPresenter
.
getMyInfo
()
...
...
video/tmpmob/ShareSDK/assets/ShareSDK.xml
View file @
274da8b4
...
...
@@ -16,8 +16,8 @@
<Tumblr
Enable=
"false"
/>
<Email
Enable=
"false"
/>
<ShortMessage
Enable=
"false"
/>
<Wechat
AppId=
"wx
7e946f66585ca00a"
AppSecret=
"6fe41783e736bea36504b271cea484f1
"
userName=
"gh_afb25ac019c9"
path=
"pages/index/index.html?id=1"
WithShareTicket=
"true"
MiniprogramType=
"0"
/>
<WechatMoments
AppId=
"wx
7e946f66585ca00a"
AppSecret=
"6fe41783e736bea36504b271cea484f1
"
/>
<Wechat
AppId=
"wx
10e29b733b8c71c7"
AppSecret=
"93add1e49825bd4992ba8b6792630a7d
"
userName=
"gh_afb25ac019c9"
path=
"pages/index/index.html?id=1"
WithShareTicket=
"true"
MiniprogramType=
"0"
/>
<WechatMoments
AppId=
"wx
10e29b733b8c71c7"
AppSecret=
"93add1e49825bd4992ba8b6792630a7d
"
/>
<QQ
Enable=
"false"
/>
<Instapaper
Enable=
"false"
/>
<Pocket
Enable=
"false"
/>
...
...
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