Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Data Recovery White
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
Data Recovery White
Commits
13124cb9
Commit
13124cb9
authored
Jul 23, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
574d1f45
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
MyApplication.kt
app/src/main/java/com/base/datarecovery/MyApplication.kt
+9
-7
ResultActivity.kt
...ain/java/com/base/datarecovery/activity/ResultActivity.kt
+6
-4
SplashActivity.kt
...ain/java/com/base/datarecovery/activity/SplashActivity.kt
+1
-1
No files found.
app/src/main/java/com/base/datarecovery/MyApplication.kt
View file @
13124cb9
...
...
@@ -52,14 +52,16 @@ class MyApplication : BaseApplication() {
}
}
fun
initApp
()
{
fun
initApp
(
isFirst
:
Boolean
=
false
)
{
if
(!
isFirst
)
{
val
topic
=
ConfigHelper
.
packageName
+
"_push"
FCMManager
.
initFirebase
(
this
)
FCMManager
.
subscribeToTopic
(
topic
)
LogEx
.
logDebug
(
TAG
,
"topic=${topic}"
)
ScreenStatusReceiver
.
setupScreenStatusListener
(
this
)
InstallHelps
.
init
()
}
if
(
ifAgreePrivacy
)
{
AdmobMaxHelper
.
initAdmobMaxAd
()
MainScope
().
launch
(
Dispatchers
.
Main
)
{
...
...
app/src/main/java/com/base/datarecovery/activity/ResultActivity.kt
View file @
13124cb9
...
...
@@ -32,8 +32,10 @@ import com.base.datarecovery.help.BaseActivity
import
com.base.datarecovery.help.KotlinExt.toFormatSize
import
com.base.datarecovery.utils.BarUtils
import
com.base.datarecovery.utils.AppPreferences
import
com.base.datarecovery.utils.LogEx
class
ResultActivity
:
BaseActivity
<
ActivityLayoutResultBinding
>()
{
private
val
TAG
=
"ResultActivity"
override
val
binding
:
ActivityLayoutResultBinding
by
lazy
{
ActivityLayoutResultBinding
.
inflate
(
layoutInflater
)
...
...
@@ -93,11 +95,11 @@ class ResultActivity : BaseActivity<ActivityLayoutResultBinding>() {
adapter
.
updateListPosition
()
adapter
.
notifyDataSetChanged
()
val
from
=
intent
.
getStringExtra
(
"from"
)
val
from
=
intent
.
extras
?.
getString
(
"from"
)
LogEx
.
logDebug
(
TAG
,
"from=$from"
)
when
(
from
)
{
JUNK_CLEANER
->
{
if
(
intent
.
getLongExtra
(
"clean_size"
,
0L
)
>
0
)
{
val
size
=
intent
.
getLongExtra
(
"clean_size"
,
0L
).
toFormatSize
(
1
)
binding
.
tvInfo
.
text
=
"Cleaned up $size"
}
else
{
...
...
@@ -132,7 +134,7 @@ class ResultActivity : BaseActivity<ActivityLayoutResultBinding>() {
binding
.
ivBack
.
setOnClickListener
{
onBackPressedDispatcher
.
onBackPressed
()
}
AdmobMaxHelper
.
admobMaxShowNativeAd
(
this
@ResultActivity
,
binding
.
flAd
)
AdmobMaxHelper
.
admobMaxShowNativeAd
(
this
@ResultActivity
,
binding
.
flAd
)
}
override
fun
onDestroy
()
{
...
...
app/src/main/java/com/base/datarecovery/activity/SplashActivity.kt
View file @
13124cb9
...
...
@@ -204,7 +204,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
}
oneClickStart
=
true
ifAgreePrivacy
=
true
(
application
as
MyApplication
).
initApp
()
(
application
as
MyApplication
).
initApp
(
true
)
AdmobMaxHelper
.
preloadAd
(
this
)
binding
.
llStart
.
visibility
=
View
.
GONE
binding
.
llProgress
.
visibility
=
View
.
VISIBLE
...
...
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