Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
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_flowbox
Commits
3198ee14
Commit
3198ee14
authored
Jul 29, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
56c62360
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
14 deletions
+16
-14
AppOutScreenGroMoreCarrierExpressManager.kt
...ts/flowbox/ad/AppOutScreenGroMoreCarrierExpressManager.kt
+3
-5
AppOutSimpleGroMoreCarrierExpressManager.kt
...ts/flowbox/ad/AppOutSimpleGroMoreCarrierExpressManager.kt
+3
-4
ExpressAdCallback.kt
app/src/main/java/com/mints/flowbox/ad/ExpressAdCallback.kt
+1
-1
MainActivity.kt
.../main/java/com/mints/flowbox/ui/activitys/MainActivity.kt
+5
-0
ApkActivity.kt
...a/com/mints/flowbox/ui/activitys/keepalive/ApkActivity.kt
+1
-3
ScreenActivity.kt
...om/mints/flowbox/ui/activitys/keepalive/ScreenActivity.kt
+3
-1
No files found.
app/src/main/java/com/mints/flowbox/ad/AppOutScreenGroMoreCarrierExpressManager.kt
View file @
3198ee14
...
...
@@ -175,7 +175,6 @@ class AppOutScreenGroMoreCarrierExpressManager : TTSettingConfigCallback {
TrackManager
.
getInstance
().
cmtGroMoreInfo
(
vo
)
}
}
})
}
...
...
@@ -194,16 +193,15 @@ class AppOutScreenGroMoreCarrierExpressManager : TTSettingConfigCallback {
}
else
{
// 状态重置
isLoadSuccess
=
0
loadAd
()
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
getAdView
(
callback
)
},
1000
)
callback
.
loadingFail
()
loadADFrameLayout
()
}
}
fun
resetLoadStatus
()
{
// 状态重置
isLoadSuccess
=
0
loadADFrameLayout
()
}
/**
...
...
app/src/main/java/com/mints/flowbox/ad/AppOutSimpleGroMoreCarrierExpressManager.kt
View file @
3198ee14
...
...
@@ -193,16 +193,15 @@ class AppOutSimpleGroMoreCarrierExpressManager : TTSettingConfigCallback {
}
else
{
// 状态重置
isLoadSuccess
=
0
loadAd
()
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
getAdView
(
callback
)
},
1000
)
callback
.
loadingFail
()
loadADFrameLayout
()
}
}
fun
resetLoadStatus
()
{
// 状态重置
isLoadSuccess
=
0
loadADFrameLayout
()
}
/**
...
...
app/src/main/java/com/mints/flowbox/ad/ExpressAdCallback.kt
View file @
3198ee14
...
...
@@ -10,5 +10,5 @@ import android.widget.FrameLayout
*/
interface
ExpressAdCallback
{
fun
loadSuccess
(
adView
:
FrameLayout
?)
//
fun loadingFail()
fun
loadingFail
()
}
\ No newline at end of file
app/src/main/java/com/mints/flowbox/ui/activitys/MainActivity.kt
View file @
3198ee14
...
...
@@ -14,6 +14,8 @@ import androidx.fragment.app.FragmentManager
import
androidx.fragment.app.FragmentTransaction
import
com.mints.flowbox.MintsApplication
import
com.mints.flowbox.R
import
com.mints.flowbox.ad.AppOutScreenGroMoreCarrierExpressManager
import
com.mints.flowbox.ad.AppOutSimpleGroMoreCarrierExpressManager
import
com.mints.flowbox.ad.express.ExpressManager
import
com.mints.flowbox.ad.express.PreLoadExpressManager
import
com.mints.flowbox.ad.express.TTPreLoadCarrierExpressManager
...
...
@@ -122,6 +124,9 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
}
else
{
tab_rl_two
.
visibility
=
View
.
VISIBLE
tab_rl_four
.
visibility
=
View
.
VISIBLE
AppOutScreenGroMoreCarrierExpressManager
.
instance
.
loadADFrameLayout
()
AppOutSimpleGroMoreCarrierExpressManager
.
instance
.
loadADFrameLayout
()
}
}
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/ApkActivity.kt
View file @
3198ee14
...
...
@@ -8,7 +8,6 @@ import androidx.core.content.ContextCompat
import
com.daimajia.androidanimations.library.Techniques
import
com.daimajia.androidanimations.library.YoYo
import
com.mints.flowbox.R
import
com.mints.flowbox.ad.AppOutScreenGroMoreCarrierExpressManager
import
com.mints.flowbox.ad.AppOutSimpleGroMoreCarrierExpressManager
import
com.mints.flowbox.ad.ExpressAdCallback
import
com.mints.flowbox.ad.express.ExpressManager
...
...
@@ -23,7 +22,6 @@ import kotlinx.android.synthetic.main.activity_apk.btnClean
import
kotlinx.android.synthetic.main.activity_apk.fl_ad
import
kotlinx.android.synthetic.main.activity_apk.iv_close
import
kotlinx.android.synthetic.main.activity_apk.tvInfo
import
kotlinx.android.synthetic.main.activity_screen.*
import
kotlin.random.Random
/**
...
...
@@ -121,7 +119,7 @@ class ApkActivity : BaseActivity() {
*/
private
fun
initExpress
()
{
try
{
AppOutS
creen
GroMoreCarrierExpressManager
.
instance
.
getAdView
(
object
:
ExpressAdCallback
{
AppOutS
imple
GroMoreCarrierExpressManager
.
instance
.
getAdView
(
object
:
ExpressAdCallback
{
override
fun
loadSuccess
(
adView
:
FrameLayout
?)
{
fl_ad
.
removeAllViews
()
fl_ad
.
addView
(
adView
,
ExpressManager
.
lp
)
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/ScreenActivity.kt
View file @
3198ee14
...
...
@@ -104,7 +104,9 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
fl_ad
.
addView
(
adView
,
ExpressManager
.
lp
)
}
override
fun
loadingFail
()
{}
override
fun
loadingFail
()
{
AppOutScreenGroMoreCarrierExpressManager
.
instance
.
loadADFrameLayout
()
}
})
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
...
...
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