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
eb5910dd
Commit
eb5910dd
authored
Feb 10, 2025
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
迭代
parent
a22d829e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
22 deletions
+32
-22
CleanJunkActivity.java
.../swiftcleaner/chovey/view/activity/CleanJunkActivity.java
+3
-6
EndCleanJunkActivity.java
...iftcleaner/chovey/view/activity/EndCleanJunkActivity.java
+29
-16
No files found.
app/src/main/java/com/swiftcleaner/chovey/view/activity/CleanJunkActivity.java
View file @
eb5910dd
...
...
@@ -213,14 +213,14 @@ public class CleanJunkActivity extends BaseActivity<ActivityCleanJunkBinding> {
binding
.
emptyFilesRecy
.
setVisibility
(
View
.
VISIBLE
);
}
});
SharedPreferences
pref
s
=
getSharedPreferences
(
"AppPrefs"
,
MODE_PRIVATE
);
sharedPreference
s
=
getSharedPreferences
(
"AppPrefs"
,
MODE_PRIVATE
);
binding
.
buttonCleanUp
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
if
(
view
!=
null
)
{
boolean
cleaned
=
pref
s
.
getBoolean
(
"cleaned"
,
false
);
boolean
cleaned
=
sharedPreference
s
.
getBoolean
(
"cleaned"
,
false
);
if
(!
cleaned
){
SharedPreferences
.
Editor
editor
=
pref
s
.
edit
();
SharedPreferences
.
Editor
editor
=
sharedPreference
s
.
edit
();
editor
.
putBoolean
(
"cleaned"
,
true
);
editor
.
commit
();
}
...
...
@@ -240,7 +240,6 @@ public class CleanJunkActivity extends BaseActivity<ActivityCleanJunkBinding> {
}
else
{
initQueryEmptyFiles
();
}
sharedPreferences
=
getSharedPreferences
(
"AppPrefs"
,
MODE_PRIVATE
);
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
@Nullable
Intent
data
)
{
...
...
@@ -703,7 +702,5 @@ public class CleanJunkActivity extends BaseActivity<ActivityCleanJunkBinding> {
if
(
binding
!=
null
)
{
binding
=
null
;
}
}
}
\ No newline at end of file
app/src/main/java/com/swiftcleaner/chovey/view/activity/EndCleanJunkActivity.java
View file @
eb5910dd
...
...
@@ -36,14 +36,19 @@ public class EndCleanJunkActivity extends BaseActivity<ActivityEndCleanJunkBindi
initShow
();
}
private
void
initPage
()
{
binding
.
clRadarview
.
setVisibility
(
View
.
VISIBLE
);
@Override
protected
void
onResume
()
{
super
.
onResume
();
AdmobManager
.
INSTANCE
.
showNativeAd
(
EndCleanJunkActivity
.
this
,
(
nativeAd
)
->
{
binding
.
flAdDonghua
.
removeAllViews
();
binding
.
flAdDonghua
.
setNativeAd
(
nativeAd
,
R
.
layout
.
layout_ad_native
);
return
null
;
},
null
,
null
);
}
private
void
initPage
()
{
binding
.
clRadarview
.
setVisibility
(
View
.
VISIBLE
);
binding
.
radarview
.
setSearching
(
true
);
initAnimotorPer
();
countDownTimer
=
new
CountDownTimer
(
5000
,
1000
)
{
...
...
@@ -60,19 +65,26 @@ public class EndCleanJunkActivity extends BaseActivity<ActivityEndCleanJunkBindi
binding
.
clRadarview
.
setVisibility
(
View
.
GONE
);
LoadingDialog
loadingDialog
=
new
LoadingDialog
(
EndCleanJunkActivity
.
this
);
loadingDialog
.
show
();
AdmobManager
.
INSTANCE
.
showInterstitialAd
(
EndCleanJunkActivity
.
this
,
()
->
{
return
null
;
},
()
->
{
loadingDialog
.
dismiss
();
binding
.
flAdDonghua
.
removeAllViews
();
return
null
;
},
()
->
{
loadingDialog
.
dismiss
();
binding
.
flAdDonghua
.
removeAllViews
();
return
null
;
},
false
);
if
(
AdmobManager
.
INSTANCE
.
isShowAdInter
())
{
AdmobManager
.
INSTANCE
.
showInterstitialAd
(
EndCleanJunkActivity
.
this
,
()
->
{
loadingDialog
.
dismiss
();
binding
.
flAdDonghua
.
removeAllViews
();
return
null
;
},
()
->
{
loadingDialog
.
dismiss
();
binding
.
flAdDonghua
.
removeAllViews
();
return
null
;
},
()
->
{
loadingDialog
.
dismiss
();
binding
.
flAdDonghua
.
removeAllViews
();
return
null
;
},
false
);
}
else
{
loadingDialog
.
dismiss
();
binding
.
flAdDonghua
.
removeAllViews
();
}
}
}.
start
();
AdmobManager
.
INSTANCE
.
showNativeAd
(
EndCleanJunkActivity
.
this
,
(
nativeAd
)
->
{
...
...
@@ -80,6 +92,7 @@ public class EndCleanJunkActivity extends BaseActivity<ActivityEndCleanJunkBindi
binding
.
flAd
.
setNativeAd
(
nativeAd
,
R
.
layout
.
layout_ad_native
);
return
null
;
},
null
,
null
);
}
private
void
initAnimotorPer
()
{
...
...
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