Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
swiftcleanerphonehelper
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
swiftcleanerphonehelper
Commits
05a2361e
Commit
05a2361e
authored
Dec 20, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
fd570cd8
Pipeline
#1401
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
AdmobHelper.kt
app/src/main/java/com/zxdemo/admob/AdmobHelper.kt
+10
-6
NotificationUtils.kt
app/src/main/java/com/zxdemo/notity/NotificationUtils.kt
+0
-1
No files found.
app/src/main/java/com/zxdemo/admob/AdmobHelper.kt
View file @
05a2361e
...
@@ -434,21 +434,25 @@ object AdmobHelper {
...
@@ -434,21 +434,25 @@ object AdmobHelper {
if
(
activity
.
isFinishing
||
activity
.
isDestroyed
)
return
if
(
activity
.
isFinishing
||
activity
.
isDestroyed
)
return
ReportAdUtils
.
showPrepareAd
(
INTERSTITIAL_AD_UNIT
)
ReportAdUtils
.
showPrepareAd
(
INTERSTITIAL_AD_UNIT
)
if
(!
checkAvailable
(
INTERSTITIAL_AD_UNIT
))
{
// if (!checkAvailable(INTERSTITIAL_AD_UNIT)) {
failed
?.
invoke
()
// failed?.invoke()
return
// return
// }
if
(
adDialog
==
null
)
{
adDialog
=
activity
.
showAdPreparingDialog
()
}
}
if
(!
isInterstitialAdAvailable
())
{
if
(!
isInterstitialAdAvailable
())
{
Log
.
d
(
TAG
,
"The interstitial ad is not ready yet."
)
ReportAdUtils
.
showErrorAd
(
NO_AD
,
INTERSTITIAL_AD_UNIT
)
loadInterstitialAd
(
activity
,
{
loadInterstitialAd
(
activity
,
{
showInterstitialAd
(
activity
,
dismissed
,
completed
,
failed
)
showInterstitialAd
(
activity
,
dismissed
,
completed
,
failed
)
},
{
},
{
adDialog
?.
dismiss
()
adDialog
=
null
failed
?.
invoke
()
failed
?.
invoke
()
})
})
return
return
}
}
adDialog
=
activity
.
showAdPreparingDialog
()
if
(
useAdmob
)
{
if
(
useAdmob
)
{
interstitialAd
?.
fullScreenContentCallback
=
object
:
FullScreenContentCallback
()
{
interstitialAd
?.
fullScreenContentCallback
=
object
:
FullScreenContentCallback
()
{
override
fun
onAdClicked
()
{
override
fun
onAdClicked
()
{
...
...
app/src/main/java/com/zxdemo/notity/NotificationUtils.kt
View file @
05a2361e
...
@@ -14,7 +14,6 @@ import android.util.Log
...
@@ -14,7 +14,6 @@ import android.util.Log
import
android.widget.RemoteViews
import
android.widget.RemoteViews
import
androidx.core.app.NotificationCompat
import
androidx.core.app.NotificationCompat
import
androidx.core.content.ContextCompat
import
androidx.core.content.ContextCompat
import
com.swiftcleaner.chovey.BuildConfig
import
com.swiftcleaner.chovey.R
import
com.swiftcleaner.chovey.R
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_APP_MANAGER
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_APP_MANAGER
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_APP_PROCESS
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_APP_PROCESS
...
...
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