Commit cd5c57d2 authored by wanglei's avatar wanglei

Merge remote-tracking branch 'origin/free-master' into free-master

parents 4525ecbd 752fa4d7
...@@ -10,6 +10,7 @@ import com.test.easy.easycleanerjunk.databinding.ActivityMainBinding ...@@ -10,6 +10,7 @@ import com.test.easy.easycleanerjunk.databinding.ActivityMainBinding
import com.test.easy.easycleanerjunk.fragment.HomeFragment import com.test.easy.easycleanerjunk.fragment.HomeFragment
import com.test.easy.easycleanerjunk.fragment.ToolsFragment import com.test.easy.easycleanerjunk.fragment.ToolsFragment
import com.test.easy.easycleanerjunk.helps.BaseActivity import com.test.easy.easycleanerjunk.helps.BaseActivity
import com.test.easy.easycleanerjunk.helps.EventUtils
import com.test.easy.easycleanerjunk.utils.BarUtils import com.test.easy.easycleanerjunk.utils.BarUtils
import com.test.easy.easycleanerjunk.view.RateStarPop import com.test.easy.easycleanerjunk.view.RateStarPop
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
...@@ -37,7 +38,7 @@ class NewMainActivity : BaseActivity<ActivityMainBinding>() { ...@@ -37,7 +38,7 @@ class NewMainActivity : BaseActivity<ActivityMainBinding>() {
override fun initView() { override fun initView() {
BarUtils.setStatusBarLightMode(this, true) BarUtils.setStatusBarLightMode(this, true)
BarUtils.setStatusBarColor(this, Color.TRANSPARENT) BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
EventUtils.event("page_home")
binding.idVp.run { binding.idVp.run {
adapter = object : FragmentStateAdapter(this@NewMainActivity) { adapter = object : FragmentStateAdapter(this@NewMainActivity) {
override fun getItemCount(): Int { override fun getItemCount(): Int {
......
...@@ -13,6 +13,7 @@ import com.test.easy.easycleanerjunk.fcm.CloseNotificationReceiver ...@@ -13,6 +13,7 @@ import com.test.easy.easycleanerjunk.fcm.CloseNotificationReceiver
import com.test.easy.easycleanerjunk.fcm.NotificationUtil import com.test.easy.easycleanerjunk.fcm.NotificationUtil
import com.test.easy.easycleanerjunk.helps.BaseActivity import com.test.easy.easycleanerjunk.helps.BaseActivity
import com.test.easy.easycleanerjunk.helps.ConfigHelper import com.test.easy.easycleanerjunk.helps.ConfigHelper
import com.test.easy.easycleanerjunk.helps.EventUtils
import com.test.easy.easycleanerjunk.helps.ads.AdmobUtils import com.test.easy.easycleanerjunk.helps.ads.AdmobUtils
import com.test.easy.easycleanerjunk.service.PermanentNotificationService import com.test.easy.easycleanerjunk.service.PermanentNotificationService
import com.test.easy.easycleanerjunk.utils.BarUtils import com.test.easy.easycleanerjunk.utils.BarUtils
...@@ -59,6 +60,7 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(), ...@@ -59,6 +60,7 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(),
binding.idLlJindu.isVisible = true binding.idLlJindu.isVisible = true
binding.idLlYinsi.isVisible = false binding.idLlYinsi.isVisible = false
onAgreePrivacy() onAgreePrivacy()
EventUtils.event("app_start")
} else { } else {
PrivacyAgreementManager(binding, this, this) PrivacyAgreementManager(binding, this, this)
} }
......
...@@ -9,6 +9,7 @@ import android.text.style.UnderlineSpan ...@@ -9,6 +9,7 @@ import android.text.style.UnderlineSpan
import com.test.easy.easycleanerjunk.MyApplication import com.test.easy.easycleanerjunk.MyApplication
import com.test.easy.easycleanerjunk.databinding.ActivityLayoutSplashBinding import com.test.easy.easycleanerjunk.databinding.ActivityLayoutSplashBinding
import com.test.easy.easycleanerjunk.helps.ConfigHelper import com.test.easy.easycleanerjunk.helps.ConfigHelper
import com.test.easy.easycleanerjunk.helps.EventUtils
class PrivacyAgreementManager { class PrivacyAgreementManager {
...@@ -59,6 +60,7 @@ class PrivacyAgreementManager { ...@@ -59,6 +60,7 @@ class PrivacyAgreementManager {
ConfigHelper.ifAgreePrivacy = true ConfigHelper.ifAgreePrivacy = true
(context.application as MyApplication).initApp() (context.application as MyApplication).initApp()
listener.onAgreePrivacy() listener.onAgreePrivacy()
EventUtils.event("app_start")
} }
} }
......
...@@ -83,7 +83,7 @@ public class NotificationUtil { ...@@ -83,7 +83,7 @@ public class NotificationUtil {
} }
int interval = SPUtils.getInstance().getInt("notification_interval", 60); int interval = SPUtils.getInstance().getInt("notification_interval", 60);
long lastTime = SPUtils.getInstance().getInt("last_notification_time", 0); long lastTime = SPUtils.getInstance().getLong("last_notification_time", 0);
long nowTime = System.currentTimeMillis(); long nowTime = System.currentTimeMillis();
long x = nowTime - lastTime; long x = nowTime - lastTime;
if (x < (interval * 1000)) { if (x < (interval * 1000)) {
...@@ -157,7 +157,7 @@ public class NotificationUtil { ...@@ -157,7 +157,7 @@ public class NotificationUtil {
btn = "Clean up"; btn = "Clean up";
} else if (actionId == ConfigBean.ID_APP_MANAGER) { } else if (actionId == ConfigBean.ID_APP_MANAGER) {
icon = R.drawable.appmanager; icon = R.drawable.appmanager;
desc = "Manage apps that are not frequently used, free up storage space on your phone, and keep it running smoothly!"; desc = "Running out of space on your phone? Manage less frequently used apps to free up space on your phone!";
btn = "View"; btn = "View";
} else if (actionId == ConfigBean.ID_BATTERY) { } else if (actionId == ConfigBean.ID_BATTERY) {
icon = R.drawable.battery; icon = R.drawable.battery;
...@@ -169,7 +169,7 @@ public class NotificationUtil { ...@@ -169,7 +169,7 @@ public class NotificationUtil {
btn = "View"; btn = "View";
} else if (actionId == ConfigBean.ID_WHATSAPP) { } else if (actionId == ConfigBean.ID_WHATSAPP) {
icon = R.drawable.whatsapp_clean; icon = R.drawable.whatsapp_clean;
desc = "Running out of storage space on your phone? Clean up WhatsApp to free up space"; desc = "Running out of storage space on your phone? Clean up WhatsApp junk files to free up space";
btn = "View"; btn = "View";
} else { } else {
return; return;
......
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