Commit 23f7d2bd authored by wanglei's avatar wanglei

=========替换ui=======

parent b53eee2d
...@@ -22,13 +22,13 @@ android { ...@@ -22,13 +22,13 @@ android {
applicationId "com.test.basd.supercleanermax" applicationId "com.test.basd.supercleanermax"
minSdk 24 minSdk 24
targetSdk 33 targetSdk 33
versionCode 8 versionCode 1
versionName "1.7" versionName "1.0"
ndk { ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64' abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'
} }
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", "cleanmastermax-v${versionName}") setProperty("archivesBaseName", "supercleanermax-v${versionName}")
} }
buildTypes { buildTypes {
...@@ -72,12 +72,9 @@ dependencies { ...@@ -72,12 +72,9 @@ dependencies {
implementation("com.blankj:utilcodex:1.31.1") implementation("com.blankj:utilcodex:1.31.1")
implementation 'com.github.bumptech.glide:glide:4.16.0' implementation 'com.github.bumptech.glide:glide:4.16.0'
implementation 'com.airbnb.android:lottie:6.4.0' implementation 'com.airbnb.android:lottie:6.4.0'
implementation platform('com.google.firebase:firebase-bom:32.3.1')
implementation 'com.google.firebase:firebase-analytics:21.6.2'
implementation 'com.google.firebase:firebase-crashlytics'
implementation("com.squareup.okhttp3:okhttp:4.9.0") implementation("com.squareup.okhttp3:okhttp:4.9.0")
implementation("com.squareup.okhttp3:logging-interceptor:4.9.0") implementation("com.squareup.okhttp3:logging-interceptor:4.9.0")
// implementation("com.github.JavaNoober.BackgroundLibrary:libraryx:1.7.6")
implementation("com.github.JavaNoober.BackgroundLibrary:libraryx:1.7.6") implementation("com.github.JavaNoober.BackgroundLibrary:libraryx:1.7.6")
implementation("com.github.pokercc:ExpandableRecyclerView:0.9.3") implementation("com.github.pokercc:ExpandableRecyclerView:0.9.3")
def roomVersion = "2.5.0" def roomVersion = "2.5.0"
...@@ -89,9 +86,15 @@ dependencies { ...@@ -89,9 +86,15 @@ dependencies {
implementation 'com.belerweb:pinyin4j:2.5.1' implementation 'com.belerweb:pinyin4j:2.5.1'
implementation platform('com.google.firebase:firebase-bom:32.3.1')
implementation 'com.google.firebase:firebase-analytics:21.6.2'
implementation 'com.google.firebase:firebase-crashlytics'
implementation("com.google.firebase:firebase-messaging") implementation("com.google.firebase:firebase-messaging")
implementation("com.facebook.android:facebook-android-sdk:[8,9)") implementation("com.facebook.android:facebook-android-sdk:[8,9)")
implementation 'com.makeramen:roundedimageview:2.3.0' implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.mikhaellopez:circularprogressbar:3.1.0'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
} }
\ No newline at end of file
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# If you keep the line number information, uncomment this to # If you keep the line number information, uncomment this to
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-renamesourcefileattribute SourceFile
-keep class csug.qtay.zsjd.mbkb.utdq.** {*;} -keep class com.test.basd.supercleanermax.bean.** {*;}
-dontoptimize -dontoptimize
-keepattributes Signature -keepattributes Signature
-keep class com.squareup.okhttp.** { *; } -keep class com.squareup.okhttp.** { *; }
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<!-- fcm 添加以下权限 --> <!-- fcm 添加以下权限 -->
<uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
...@@ -222,6 +221,7 @@ ...@@ -222,6 +221,7 @@
<activity <activity
android:name=".activity.photocompress.photo.PreviewCompressionPhotoActivity" android:name=".activity.photocompress.photo.PreviewCompressionPhotoActivity"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<receiver <receiver
android:name=".display.CloseNotificationReceiver" android:name=".display.CloseNotificationReceiver"
android:exported="true" android:exported="true"
...@@ -234,6 +234,8 @@ ...@@ -234,6 +234,8 @@
<meta-data <meta-data
android:name="com.facebook.sdk.ApplicationId" android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" /> android:value="@string/facebook_app_id" />
<receiver android:name=".display.fcm.FCMCheckReceiver" />
</application> </application>
</manifest> </manifest>
\ No newline at end of file
{"v":"5.5.7","fr":60,"ip":0,"op":60,"w":640,"h":140,"nm":"合成 1","ddd":0,"assets":[{"id":"image_0","w":157,"h":175,"u":"images/","p":"img_0.png","e":0},{"id":"image_1","w":86,"h":50,"u":"images/","p":"img_1.png","e":0},{"id":"image_2","w":540,"h":114,"u":"images/","p":"img_2.png","e":0}],"layers":[{"ddd":0,"ind":1,"ty":2,"nm":"bu.png","cl":"png","refId":"image_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[518,94.5,0],"to":[5.917,0,0],"ti":[-5.917,0,0]},{"t":30,"s":[553.5,94.5,0]}],"ix":2},"a":{"a":0,"k":[78.5,87.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":2,"nm":"on.png","cl":"png","refId":"image_1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":22,"s":[0]},{"t":31,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[502.25,57.5,0],"ix":2},"a":{"a":0,"k":[43,25,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":2,"nm":"qx2.png","cl":"png","refId":"image_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[320,57,0],"ix":2},"a":{"a":0,"k":[270,57,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":60,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
{"v":"5.4.4","fr":60,"ip":0,"op":60,"w":680,"h":130,"nm":"switch","ddd":0,"assets":[{"id":"image_0","w":138,"h":153,"u":"images/","p":"img_0.png","e":0},{"id":"image_1","w":52,"h":52,"u":"images/","p":"img_1.png","e":0},{"id":"image_2","w":52,"h":52,"u":"images/","p":"img_2.png","e":0},{"id":"image_3","w":680,"h":130,"u":"images/","p":"img_3.png","e":0}],"layers":[{"ddd":0,"ind":1,"ty":2,"nm":"hand.png","cl":"png","refId":"image_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[605.5,95,0],"e":[649.5,95,0],"to":[7.333,0,0],"ti":[-7.333,0,0]},{"t":33}],"ix":2},"a":{"a":0,"k":[69,76.5,0],"ix":1},"s":{"a":0,"k":[86,86,100],"ix":6}},"ao":0,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":2,"nm":"on.png","cl":"png","refId":"image_1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":15,"s":[0],"e":[100]},{"t":25}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[582.5,68.5,0],"e":[626.5,68.5,0],"to":[7.333,0,0],"ti":[-7.333,0,0]},{"t":33}],"ix":2},"a":{"a":0,"k":[26,26,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":2,"nm":"off.png","cl":"png","refId":"image_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[582.5,68.5,0],"e":[626.5,68.5,0],"to":[7.333,0,0],"ti":[-7.333,0,0]},{"t":33}],"ix":2},"a":{"a":0,"k":[26,26,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":2,"nm":"permission_tips.png","cl":"png","refId":"image_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[340,65,0],"ix":2},"a":{"a":0,"k":[340,65,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":60,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
...@@ -2,6 +2,10 @@ package com.test.basd.supercleanermax ...@@ -2,6 +2,10 @@ package com.test.basd.supercleanermax
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.app.Activity import android.app.Activity
import android.app.job.JobInfo
import android.app.job.JobScheduler
import android.content.ComponentName
import android.content.Context
import android.content.Intent import android.content.Intent
import android.os.Build import android.os.Build
import android.os.Bundle import android.os.Bundle
...@@ -17,6 +21,7 @@ import com.test.basd.supercleanermax.display.ActionBroadcast.Companion.initBroad ...@@ -17,6 +21,7 @@ import com.test.basd.supercleanermax.display.ActionBroadcast.Companion.initBroad
import com.test.basd.supercleanermax.display.NotificationService import com.test.basd.supercleanermax.display.NotificationService
import com.test.basd.supercleanermax.display.NotificationUtils import com.test.basd.supercleanermax.display.NotificationUtils
import com.test.basd.supercleanermax.display.fcm.FcmHelper import com.test.basd.supercleanermax.display.fcm.FcmHelper
import com.test.basd.supercleanermax.display.fcm.NotificationJobService
import com.test.basd.supercleanermax.helps.BaseApplication import com.test.basd.supercleanermax.helps.BaseApplication
import com.test.basd.supercleanermax.helps.ComUtils.requestCfg import com.test.basd.supercleanermax.helps.ComUtils.requestCfg
import com.test.basd.supercleanermax.helps.ConfigHelper import com.test.basd.supercleanermax.helps.ConfigHelper
...@@ -72,19 +77,18 @@ class MyApplication : BaseApplication() { ...@@ -72,19 +77,18 @@ class MyApplication : BaseApplication() {
FirebaseApp.initializeApp(this) FirebaseApp.initializeApp(this)
FcmHelper.getToken() FcmHelper.getToken()
FcmHelper.subscribeToTopic() FcmHelper.subscribeToTopic()
val isBoolean = NotificationUtils.isNotificationExist(this, 1) FcmHelper.startFCMCheckAlarm(this)
if (isBoolean) { initJob()
Log.d("MyService", "常驻通知栏存在"); }
return
} private fun initJob() {
val intent = Intent(this, NotificationService::class.java) val jobScheduler = getSystemService(Context.JOB_SCHEDULER_SERVICE) as JobScheduler
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val job = JobInfo.Builder(0, ComponentName(this, NotificationJobService::class.java))
startForegroundService(intent) .setMinimumLatency(0L)
} else { .setOverrideDeadline(0L)
startService(intent) .setPersisted(true)
} .build()
initBroadcast() jobScheduler.schedule(job)
Log.d("MyService", "startService:" + Process.myPid());
} }
@SuppressLint("UnspecifiedRegisterReceiverFlag") @SuppressLint("UnspecifiedRegisterReceiverFlag")
......
...@@ -138,12 +138,12 @@ class AppManagerActivity : BaseActivity<ActivityAppManagerBinding>() { ...@@ -138,12 +138,12 @@ class AppManagerActivity : BaseActivity<ActivityAppManagerBinding>() {
} }
binding.flBack.setOnClickListener { binding.flBack.setOnClickListener {
AdmobUtils.showInterstitialAd(this) { AdmobUtils.showInterstitialAd(this) {
finish() finishToMain()
} }
} }
onBackPressedDispatcher.addCallback { onBackPressedDispatcher.addCallback {
AdmobUtils.showInterstitialAd(this@AppManagerActivity) { AdmobUtils.showInterstitialAd(this@AppManagerActivity) {
finish() finishToMain()
} }
} }
...@@ -152,8 +152,8 @@ class AppManagerActivity : BaseActivity<ActivityAppManagerBinding>() { ...@@ -152,8 +152,8 @@ class AppManagerActivity : BaseActivity<ActivityAppManagerBinding>() {
private fun playLottie() { private fun playLottie() {
LogEx.logDebug(TAG, "playLottie") LogEx.logDebug(TAG, "playLottie")
binding.llLottie.isVisible = true binding.llLottie.isVisible = true
binding.lottie.imageAssetsFolder = "guan_go_li/images/" binding.lottie.imageAssetsFolder = "guan_smax_li/images/"
binding.lottie.setAnimation("guan_go_li/data.json") binding.lottie.setAnimation("guan_smax_li/data.json")
binding.lottie.playAnimation() binding.lottie.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
AdmobUtils.showInterstitialAd(this) { AdmobUtils.showInterstitialAd(this) {
......
...@@ -54,8 +54,8 @@ class BatteryInfoActivity : BaseActivity<ActivityBatteryInfoBinding>() { ...@@ -54,8 +54,8 @@ class BatteryInfoActivity : BaseActivity<ActivityBatteryInfoBinding>() {
} }
setFilter() setFilter()
binding.idBatteryLottie.imageAssetsFolder = "dian_go_chi/images/" binding.idBatteryLottie.imageAssetsFolder = "dian_smax_chi/images/"
binding.idBatteryLottie.setAnimation("dian_go_chi/data.json") binding.idBatteryLottie.setAnimation("dian_smax_chi/data.json")
binding.idBatteryLottie.playAnimation() binding.idBatteryLottie.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
playFinish() playFinish()
...@@ -128,11 +128,11 @@ class BatteryInfoActivity : BaseActivity<ActivityBatteryInfoBinding>() { ...@@ -128,11 +128,11 @@ class BatteryInfoActivity : BaseActivity<ActivityBatteryInfoBinding>() {
val total = intent?.extras?.getInt("scale")?:0 val total = intent?.extras?.getInt("scale")?:0
val percent = current * 100 / total val percent = current * 100 / total
if (percent >= 30) { if (percent >= 30) {
binding?.imagePower?.setImageResource(R.mipmap.batteryl) binding.imagePower.setImageResource(R.mipmap.batteryl)
} else { } else {
binding?.imagePower?.setImageResource(R.mipmap.batteryh) binding.imagePower.setImageResource(R.mipmap.batteryh)
} }
binding?.tvLevel?.text = "$percent%" binding.tvLevel.text = "$percent%"
} }
} }
......
...@@ -22,8 +22,8 @@ class GuestActivity : BaseActivity<ActivityLayoutGuestBinding>() { ...@@ -22,8 +22,8 @@ class GuestActivity : BaseActivity<ActivityLayoutGuestBinding>() {
BarUtils.setStatusBarLightMode(this, true) BarUtils.setStatusBarLightMode(this, true)
BarUtils.setStatusBarColor(this, Color.TRANSPARENT) BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
ConfigHelper.ifGuest = true ConfigHelper.ifGuest = true
binding.idLottie.imageAssetsFolder = "sao_go_miao/images/" binding.idLottie.imageAssetsFolder = "sao_smax_miao/images/"
binding.idLottie.setAnimation("sao_go_miao/data.json") binding.idLottie.setAnimation("sao_smax_miao/data.json")
binding.idLottie.playAnimation() binding.idLottie.playAnimation()
loadPro() loadPro()
} }
......
...@@ -7,13 +7,21 @@ import android.content.IntentFilter ...@@ -7,13 +7,21 @@ import android.content.IntentFilter
import android.graphics.Color import android.graphics.Color
import android.graphics.Typeface import android.graphics.Typeface
import androidx.fragment.app.Fragment import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.viewpager2.adapter.FragmentStateAdapter import androidx.viewpager2.adapter.FragmentStateAdapter
import androidx.viewpager2.widget.ViewPager2 import androidx.viewpager2.widget.ViewPager2
import com.blankj.utilcode.util.AppUtils
import com.blankj.utilcode.util.BarUtils import com.blankj.utilcode.util.BarUtils
import com.test.basd.supercleanermax.databinding.ActivityMainBinding import com.test.basd.supercleanermax.databinding.ActivityMainBinding
import com.test.basd.supercleanermax.fragment.BatteryFragment
import com.test.basd.supercleanermax.fragment.HomeFragment import com.test.basd.supercleanermax.fragment.HomeFragment
import com.test.basd.supercleanermax.fragment.ToolsFragment import com.test.basd.supercleanermax.fragment.ToolsFragment
import com.test.basd.supercleanermax.helps.BaseActivity import com.test.basd.supercleanermax.helps.BaseActivity
import com.test.basd.supercleanermax.helps.ads.AdmobUtils
import com.test.basd.supercleanermax.view.RateStarPop
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
class MainActivity : BaseActivity<ActivityMainBinding>() { class MainActivity : BaseActivity<ActivityMainBinding>() {
override val isLightMode = true override val isLightMode = true
...@@ -23,16 +31,23 @@ class MainActivity : BaseActivity<ActivityMainBinding>() { ...@@ -23,16 +31,23 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
private val homeFragment by lazy { private val homeFragment by lazy {
HomeFragment() HomeFragment()
} }
private val batteryFragment by lazy {
BatteryFragment()
}
private val toolsFragment by lazy { private val toolsFragment by lazy {
ToolsFragment() ToolsFragment()
} }
private val fragments by lazy { private val fragments by lazy {
mutableListOf(homeFragment, toolsFragment) mutableListOf(homeFragment, batteryFragment, toolsFragment)
} }
private lateinit var batteryReceiver: BatteryReceiver private lateinit var batteryReceiver: BatteryReceiver
override fun initView() { override fun initView() {
BarUtils.setStatusBarColor(this, Color.TRANSPARENT) BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
AdmobUtils.loadNativeAd()
// binding.root.updatePadding(top = BarUtils.getStatusBarHeight()) // binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
binding.idVp.run { binding.idVp.run {
adapter = object : FragmentStateAdapter(this@MainActivity) { adapter = object : FragmentStateAdapter(this@MainActivity) {
...@@ -52,11 +67,16 @@ class MainActivity : BaseActivity<ActivityMainBinding>() { ...@@ -52,11 +67,16 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
} }
}) })
binding.idBottom1.setOnClickListener { binding.idBottom1.setOnClickListener {
binding.idVp.currentItem = 0 binding.idVp.currentItem = 0
} }
binding.idBottom2.setOnClickListener { binding.idBottom2.setOnClickListener {
binding.idVp.currentItem = 1 binding.idVp.currentItem = 1
} }
binding.idBottom3.setOnClickListener {
binding.idVp.currentItem = 2
}
batteryReceiver = BatteryReceiver() batteryReceiver = BatteryReceiver()
val filter = IntentFilter(Intent.ACTION_BATTERY_CHANGED) val filter = IntentFilter(Intent.ACTION_BATTERY_CHANGED)
registerReceiver(batteryReceiver, filter) registerReceiver(batteryReceiver, filter)
...@@ -65,21 +85,30 @@ class MainActivity : BaseActivity<ActivityMainBinding>() { ...@@ -65,21 +85,30 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
private fun setPage(p: Int) { private fun setPage(p: Int) {
binding.idBottom1.isSelected = false binding.idBottom1.isSelected = false
binding.idBottom2.isSelected = false binding.idBottom2.isSelected = false
binding.idTvHome.typeface = Typeface.DEFAULT binding.idBottom3.isSelected = false
binding.idTvTools.typeface = Typeface.DEFAULT binding.idTv1.typeface = Typeface.DEFAULT
binding.idTv2.typeface = Typeface.DEFAULT
binding.idTv3.typeface = Typeface.DEFAULT
when (p) { when (p) {
0 ->{ 0 -> {
binding.idBottom1.isSelected = true binding.idBottom1.isSelected = true
binding.idTvHome.typeface = Typeface.DEFAULT_BOLD binding.idTv1.typeface = Typeface.DEFAULT_BOLD
} }
1 -> { 1 -> {
binding.idBottom2.isSelected = true binding.idBottom2.isSelected = true
binding.idTvTools.typeface = Typeface.DEFAULT_BOLD binding.idTv2.typeface = Typeface.DEFAULT_BOLD
}
2 -> {
binding.idBottom3.isSelected = true
binding.idTv3.typeface = Typeface.DEFAULT_BOLD
} }
} }
} }
var level = 0 var level = 0
private inner class BatteryReceiver : BroadcastReceiver() { private inner class BatteryReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) { override fun onReceive(context: Context?, intent: Intent?) {
...@@ -94,4 +123,14 @@ class MainActivity : BaseActivity<ActivityMainBinding>() { ...@@ -94,4 +123,14 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
super.onDestroy() super.onDestroy()
unregisterReceiver(batteryReceiver) unregisterReceiver(batteryReceiver)
} }
override fun onResume() {
super.onResume()
if (AppUtils.isAppForeground()) {
lifecycleScope.launch(Dispatchers.Main) {
delay(1000)
RateStarPop.show(this@MainActivity)
}
}
}
} }
\ No newline at end of file
...@@ -64,8 +64,8 @@ class NetWorkActivity : BaseActivity<ActivityLayoutNetworkBinding>() { ...@@ -64,8 +64,8 @@ class NetWorkActivity : BaseActivity<ActivityLayoutNetworkBinding>() {
private fun playlottie() { private fun playlottie() {
binding.idLlNetDh.isVisible = true binding.idLlNetDh.isVisible = true
binding.idLottieNetwork.imageAssetsFolder = "wan_go_gluo/images/" binding.idLottieNetwork.imageAssetsFolder = "wan_smax_gluo/images/"
binding.idLottieNetwork.setAnimation("wan_go_gluo/data.json") binding.idLottieNetwork.setAnimation("wan_smax_gluo/data.json")
binding.idLottieNetwork.playAnimation() binding.idLottieNetwork.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
AdmobUtils.showInterstitialAd(this) { AdmobUtils.showInterstitialAd(this) {
......
...@@ -86,8 +86,8 @@ class PrepareScanActivity : BaseActivity<ActivityLayoutParepreScanBinding>() { ...@@ -86,8 +86,8 @@ class PrepareScanActivity : BaseActivity<ActivityLayoutParepreScanBinding>() {
} }
start() start()
} }
binding.idJunkScan.imageAssetsFolder = "sao_go_miao/images/" binding.idJunkScan.imageAssetsFolder = "sao_smax_miao/images/"
binding.idJunkScan.setAnimation("sao_go_miao/data.json") binding.idJunkScan.setAnimation("sao_smax_miao/data.json")
binding.idJunkScan.playAnimation() binding.idJunkScan.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
AdmobUtils.showInterstitialAd(this) { AdmobUtils.showInterstitialAd(this) {
......
...@@ -63,23 +63,23 @@ class RecentAppActivity : BaseActivity<ActivityRecentAppBinding>() { ...@@ -63,23 +63,23 @@ class RecentAppActivity : BaseActivity<ActivityRecentAppBinding>() {
if (checkUsageAccessSettings()) { if (checkUsageAccessSettings()) {
Log.e("MXL", "onCreate: " + checkUsageAccessSettings()) Log.e("MXL", "onCreate: " + checkUsageAccessSettings())
intData() intData()
playLottie()
} else { } else {
binding.llContent.visibility = View.GONE binding.llContent.visibility = View.GONE
binding.flPermission.visibility = View.VISIBLE binding.flPermission.visibility = View.VISIBLE
} }
playLottie()
} }
override fun initListener() { override fun initListener() {
binding.flBack.setOnClickListener { binding.flBack.setOnClickListener {
AdmobUtils.showInterstitialAd(this) { AdmobUtils.showInterstitialAd(this) {
finish() finishToMain()
} }
} }
onBackPressedDispatcher.addCallback { onBackPressedDispatcher.addCallback {
LogEx.logDebug(TAG, "onBackPressedDispatcher") LogEx.logDebug(TAG, "onBackPressedDispatcher")
AdmobUtils.showInterstitialAd(this@RecentAppActivity) { AdmobUtils.showInterstitialAd(this@RecentAppActivity) {
finish() finishToMain()
} }
} }
binding.tvGrand.setOnClickListener { binding.tvGrand.setOnClickListener {
...@@ -104,8 +104,8 @@ class RecentAppActivity : BaseActivity<ActivityRecentAppBinding>() { ...@@ -104,8 +104,8 @@ class RecentAppActivity : BaseActivity<ActivityRecentAppBinding>() {
private fun playLottie(showFinish: (() -> Unit)? = null) { private fun playLottie(showFinish: (() -> Unit)? = null) {
binding.llLottie.isVisible = true binding.llLottie.isVisible = true
binding.lottie.imageAssetsFolder = "zui_go_jing/images/" binding.lottie.imageAssetsFolder = "zui_smax_jing/images/"
binding.lottie.setAnimation("zui_go_jing/data.json") binding.lottie.setAnimation("zui_smax_jing/data.json")
binding.lottie.playAnimation() binding.lottie.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
AdmobUtils.showInterstitialAd(this) { AdmobUtils.showInterstitialAd(this) {
......
...@@ -74,8 +74,8 @@ class ScanJunkActivity : BaseActivity<ActivityLayoutScanJunkBinding>() { ...@@ -74,8 +74,8 @@ class ScanJunkActivity : BaseActivity<ActivityLayoutScanJunkBinding>() {
} }
start() start()
} }
binding.idJunkScan.imageAssetsFolder = "sao_go_miao/images/" binding.idJunkScan.imageAssetsFolder = "sao_smax_miao/images/"
binding.idJunkScan.setAnimation("sao_go_miao/data.json") binding.idJunkScan.setAnimation("sao_smax_miao/data.json")
binding.idJunkScan.playAnimation() binding.idJunkScan.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
AdmobUtils.showInterstitialAd(this) { AdmobUtils.showInterstitialAd(this) {
......
...@@ -30,8 +30,8 @@ class SpeakCleaningActivity : BaseActivity<ActivityLayoutSpeakerCleaningBinding> ...@@ -30,8 +30,8 @@ class SpeakCleaningActivity : BaseActivity<ActivityLayoutSpeakerCleaningBinding>
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, maxVolume, 0) audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, maxVolume, 0)
BarUtils.setStatusBarColor(this, Color.TRANSPARENT) BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
binding.root.updatePadding(top = BarUtils.getStatusBarHeight()) binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
binding.idSpeakCleanLottie.imageAssetsFolder = "speak_go_clean/images/" binding.idSpeakCleanLottie.imageAssetsFolder = "speak_smax_clean/images/"
binding.idSpeakCleanLottie.setAnimation("speak_go_clean/data.json") binding.idSpeakCleanLottie.setAnimation("speak_smax_clean/data.json")
binding.idSpeakCleanLottie.playAnimation() binding.idSpeakCleanLottie.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
zAudio.stop() zAudio.stop()
......
...@@ -48,8 +48,8 @@ class StartCompressionPhotoActivity : BaseActivity<ActivityStartCompressionPhoto ...@@ -48,8 +48,8 @@ class StartCompressionPhotoActivity : BaseActivity<ActivityStartCompressionPhoto
} }
} }
private fun playlottie(){ private fun playlottie(){
binding.idLottie1.imageAssetsFolder = "ya_go_suo/images/" binding.idLottie1.imageAssetsFolder = "ya_smax_suo/images/"
binding.idLottie1.setAnimation("ya_go_suo/data.json") binding.idLottie1.setAnimation("ya_smax_suo/data.json")
binding.idLottie1.playAnimation() binding.idLottie1.playAnimation()
Handler().postDelayed({ Handler().postDelayed({
AdmobUtils.showInterstitialAd(this) { AdmobUtils.showInterstitialAd(this) {
......
...@@ -20,8 +20,8 @@ class BatteryOptimizerActivity : BaseActivity<ActivityLayoutSpeedBinding>() { ...@@ -20,8 +20,8 @@ class BatteryOptimizerActivity : BaseActivity<ActivityLayoutSpeedBinding>() {
override fun initView() { override fun initView() {
BarUtils.setStatusBarColor(this, Color.TRANSPARENT) BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
binding.root.updatePadding(top = BarUtils.getStatusBarHeight()) binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
binding.idOneLottie.imageAssetsFolder = "dian_go_chi/images/" binding.idOneLottie.imageAssetsFolder = "dian_smax_chi/images/"
binding.idOneLottie.setAnimation("dian_go_chi/data.json") binding.idOneLottie.setAnimation("dian_smax_chi/data.json")
binding.idOneLottie.playAnimation() binding.idOneLottie.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
binding.idOneLottie.isVisible = false binding.idOneLottie.isVisible = false
...@@ -34,8 +34,8 @@ class BatteryOptimizerActivity : BaseActivity<ActivityLayoutSpeedBinding>() { ...@@ -34,8 +34,8 @@ class BatteryOptimizerActivity : BaseActivity<ActivityLayoutSpeedBinding>() {
private fun playRocket() { private fun playRocket() {
binding.idRocket.imageAssetsFolder = "battery_save/images/" binding.idRocket.imageAssetsFolder = "battery_smax_save/images/"
binding.idRocket.setAnimation("battery_save/data.json") binding.idRocket.setAnimation("battery_smax_save/data.json")
binding.idRocket.playAnimation() binding.idRocket.playAnimation()
binding.idRocket.addAnimatorListener(object : Animator.AnimatorListener { binding.idRocket.addAnimatorListener(object : Animator.AnimatorListener {
override fun onAnimationStart(p0: Animator) { override fun onAnimationStart(p0: Animator) {
......
...@@ -26,8 +26,8 @@ class SpeedActivity : BaseActivity<ActivityLayoutSpeedBinding>() { ...@@ -26,8 +26,8 @@ class SpeedActivity : BaseActivity<ActivityLayoutSpeedBinding>() {
override fun initView() { override fun initView() {
BarUtils.setStatusBarColor(this, Color.TRANSPARENT) BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
binding.root.updatePadding(top = BarUtils.getStatusBarHeight()) binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
binding.idOneLottie.imageAssetsFolder = "guan_go_li/images/" binding.idOneLottie.imageAssetsFolder = "guan_smax_li/images/"
binding.idOneLottie.setAnimation("guan_go_li/data.json") binding.idOneLottie.setAnimation("guan_smax_li/data.json")
binding.idOneLottie.playAnimation() binding.idOneLottie.playAnimation()
binding.root.postDelayed({ binding.root.postDelayed({
binding.idOneLottie.isVisible = false binding.idOneLottie.isVisible = false
...@@ -39,8 +39,8 @@ class SpeedActivity : BaseActivity<ActivityLayoutSpeedBinding>() { ...@@ -39,8 +39,8 @@ class SpeedActivity : BaseActivity<ActivityLayoutSpeedBinding>() {
private fun playRocket() { private fun playRocket() {
binding.idRocket.imageAssetsFolder = "fast/images/" binding.idRocket.imageAssetsFolder = "fast_smax/images/"
binding.idRocket.setAnimation("fast/data.json") binding.idRocket.setAnimation("fast_smax/data.json")
binding.idRocket.playAnimation() binding.idRocket.playAnimation()
MainScope().launch(Dispatchers.Main) { MainScope().launch(Dispatchers.Main) {
launch { launch {
......
...@@ -93,7 +93,7 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(), ...@@ -93,7 +93,7 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(),
} }
} }
AdmobUtils.loadInterstitialAd(this) AdmobUtils.loadInterstitialAd(this)
AdmobUtils.loadNativeAd() // AdmobUtils.loadNativeAd()
} }
override fun onNewIntent(intent: Intent) { override fun onNewIntent(intent: Intent) {
......
...@@ -44,7 +44,7 @@ class PrivacyAgreementManager { ...@@ -44,7 +44,7 @@ class PrivacyAgreementManager {
binding.idTvPrivacyPolicy.setOnClickListener { binding.idTvPrivacyPolicy.setOnClickListener {
val intent = Intent( val intent = Intent(
Intent.ACTION_VIEW, Intent.ACTION_VIEW,
Uri.parse("https://sites.google.com/view/cleanmastermax/home") Uri.parse("https://sites.google.com/view/super-cleaner-max/super-cleaner-max")
) )
context.startActivity(intent) context.startActivity(intent)
} }
......
...@@ -25,9 +25,9 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) : ...@@ -25,9 +25,9 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) :
RecyclerView.Adapter<AppFunctionAdapter.JJJ>() { RecyclerView.Adapter<AppFunctionAdapter.JJJ>() {
val list = arrayListOf( val list = arrayListOf(
Fun(JUNK_CLEANER, R.mipmap.cleanjunk, "Clean junk regularly to free up space", "Clean Up"), Fun(JUNK_CLEANER, R.mipmap.cleanjunk_home, "Clean junk regularly to free up space", "Clean Up"),
Fun(PHOTO_COMPRESS, R.mipmap.photo, "Compress photos to save space", "Compress"), Fun(PHOTO_COMPRESS, R.mipmap.photo_home, "Compress photos to save space", "Compress"),
Fun(LARGE_FILE_CLEANER, R.mipmap.large, "Clean large files to free up storage space", "Clean Up"), Fun(LARGE_FILE_CLEANER, R.mipmap.large_home, "Clean large files to free up storage space", "Clean Up"),
Fun(BATTERY_INFO, R.mipmap.battery, "View battery usage and details", "Check Now"), Fun(BATTERY_INFO, R.mipmap.battery, "View battery usage and details", "Check Now"),
Fun( Fun(
APP_MANAGER, APP_MANAGER,
...@@ -37,20 +37,20 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) : ...@@ -37,20 +37,20 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) :
), ),
Fun( Fun(
SIMILAR_PHOTOS, SIMILAR_PHOTOS,
R.mipmap.similar, R.mipmap.similar_home,
"Check similar photos to release more space", "Check similar photos to release more space",
"Clean Up" "Clean Up"
), ),
Fun( Fun(
NOTIFICATION_CLEANER, NOTIFICATION_CLEANER,
R.mipmap.notification, R.mipmap.notification_tools,
"Too many annoying notifications? Block and clean", "Too many annoying notifications? Block and clean",
"Check Now" "Check Now"
), ),
Fun(RECENT_APP_USAGE, R.mipmap.recentapp, "Check and manage recently active apps", "View Now"), Fun(RECENT_APP_USAGE, R.mipmap.recent_tools, "Check and manage recently active apps", "View Now"),
Fun( Fun(
NETWORK_TRAFFIC, NETWORK_TRAFFIC,
R.mipmap.network, R.mipmap.network_tools,
"View network traffic usage and stop traffic-consuming apps", "View network traffic usage and stop traffic-consuming apps",
"View Now" "View Now"
) )
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment