Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
Easy Cleaner Junk
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
Easy Cleaner Junk
Commits
bb4e39b6
Commit
bb4e39b6
authored
Jul 24, 2024
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x修改bug
parent
366f96a8
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
51 additions
and
8 deletions
+51
-8
ResultActivity.kt
.../com/test/easy/easycleanerjunk/activity/ResultActivity.kt
+2
-0
AppManagerActivity.kt
...easycleanerjunk/activity/appmanager/AppManagerActivity.kt
+2
-1
BatteryInfoActivity.kt
...sycleanerjunk/activity/batteryinfo/BatteryInfoActivity.kt
+2
-1
LargeFileCleanActivity.kt
...ycleanerjunk/activity/largefile/LargeFileCleanActivity.kt
+2
-1
CompressionPhotoListActivity.kt
...ivity/photocompress/photo/CompressionPhotoListActivity.kt
+2
-1
CleanJunkActivity.kt
...sy/easycleanerjunk/activity/scanjunk/CleanJunkActivity.kt
+2
-1
ScreenShotActivity.kt
...easycleanerjunk/activity/screenshot/ScreenShotActivity.kt
+2
-1
RepeatPhotoActivity.kt
...cleanerjunk/activity/similarphotos/RepeatPhotoActivity.kt
+2
-1
WhatsAppCleanerActivity.kt
...ycleanerjunk/activity/whatsapp/WhatsAppCleanerActivity.kt
+2
-1
BackHelps.kt
...ain/java/com/test/easy/easycleanerjunk/helps/BackHelps.kt
+33
-0
No files found.
app/src/main/java/com/test/easy/easycleanerjunk/activity/ResultActivity.kt
View file @
bb4e39b6
...
...
@@ -135,6 +135,8 @@ class ResultActivity : BaseActivity<ActivityLayoutResultBinding>() {
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@ResultActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/appmanager/AppManagerActivity.kt
View file @
bb4e39b6
...
...
@@ -54,13 +54,14 @@ class AppManagerActivity : BaseActivity<ActivityAppManagerBinding>() {
MaxAdUtils
.
showInterstitialAd
(
this
@AppManagerActivity
)
{
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
startActivity
(
Intent
(
this
@AppManagerActivity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@AppManagerActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/batteryinfo/BatteryInfoActivity.kt
View file @
bb4e39b6
...
...
@@ -71,13 +71,14 @@ class BatteryInfoActivity : BaseActivity<ActivityLayoutBatteryInfoBinding>() {
MaxAdUtils
.
showInterstitialAd
(
this
@BatteryInfoActivity
,
isShowInterVal
=
false
)
{
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
startActivity
(
Intent
(
this
@BatteryInfoActivity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@BatteryInfoActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/largefile/LargeFileCleanActivity.kt
View file @
bb4e39b6
...
...
@@ -196,13 +196,14 @@ class LargeFileCleanActivity : BaseActivity<ActivityLayoutLargeFileBinding>() {
// finishToMain()
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
startActivity
(
Intent
(
this
@LargeFileCleanActivity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@LargeFileCleanActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/photocompress/photo/CompressionPhotoListActivity.kt
View file @
bb4e39b6
...
...
@@ -41,13 +41,14 @@ class CompressionPhotoListActivity : BaseActivity<ActivityCompressionPhotoListBi
PhotoCache
.
getInstance
().
clearCache
()
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
startActivity
(
Intent
(
this
@CompressionPhotoListActivity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@CompressionPhotoListActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/scanjunk/CleanJunkActivity.kt
View file @
bb4e39b6
...
...
@@ -91,13 +91,14 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
//finishToMain()
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
startActivity
(
Intent
(
this
@CleanJunkActivity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@CleanJunkActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/screenshot/ScreenShotActivity.kt
View file @
bb4e39b6
...
...
@@ -95,13 +95,14 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
//finishToMain()
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
startActivity
(
Intent
(
this
@ScreenShotActivity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@ScreenShotActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/similarphotos/RepeatPhotoActivity.kt
View file @
bb4e39b6
...
...
@@ -58,13 +58,14 @@ class RepeatPhotoActivity : BaseActivity<ActivityLayoutRepeatPhotoBinding>() {
// finishToMain()
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
startActivity
(
Intent
(
this
@RepeatPhotoActivity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@RepeatPhotoActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/activity/whatsapp/WhatsAppCleanerActivity.kt
View file @
bb4e39b6
...
...
@@ -82,13 +82,14 @@ class WhatsAppCleanerActivity : BaseActivity<ActivityWhatsAppCleanerBinding>() {
MaxAdUtils
.
showInterstitialAd
(
this
@WhatsAppCleanerActivity
)
{
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
startActivity
(
Intent
(
this
@WhatsAppCleanerActivity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
startActivity
(
Intent
(
this
@WhatsAppCleanerActivity
,
BackRelsutAt
::
class
.
java
))
finish
()
}
else
{
finishToMain
()
}
}
else
{
finishToMain
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/helps/BackHelps.kt
0 → 100644
View file @
bb4e39b6
package
com.test.easy.easycleanerjunk.helps
import
android.app.Activity
import
android.content.Intent
import
com.test.easy.easycleanerjunk.activity.BackRelsutAt
import
com.test.easy.easycleanerjunk.activity.home.NewMainActivity
import
com.test.easy.easycleanerjunk.utils.ActivityManagerUtils
import
com.test.easy.easycleanerjunk.utils.SPUtils
object
BackHelps
{
fun
isJumpBack
(
activity
:
Activity
)
{
val
s
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnCount"
,
0
)
if
(
s
==
1
)
{
activity
.
startActivity
(
Intent
(
activity
,
BackRelsutAt
::
class
.
java
))
val
localCount
=
SPUtils
.
getInstance
().
getInt
(
"localCount"
,
0
)
SPUtils
.
getInstance
().
put
(
"localCount"
,
localCount
+
1
)
val
n
=
SPUtils
.
getInstance
().
getInt
(
"outcomeReturnHomeCount"
,
0
)
if
(
localCount
<
n
)
{
activity
.
startActivity
(
Intent
(
activity
,
BackRelsutAt
::
class
.
java
))
activity
.
finish
()
}
}
else
{
if
(
activity
!
is
NewMainActivity
&&
!
ActivityManagerUtils
.
getInstance
()
.
isActivityInStack
(
NewMainActivity
::
class
.
java
)
)
{
activity
.
startActivity
(
Intent
(
activity
,
NewMainActivity
::
class
.
java
))
}
activity
.
finish
()
}
}
}
\ No newline at end of file
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