Commit 38e2545c authored by wanglei's avatar wanglei

...

parent 5c7cb3f2
...@@ -7,6 +7,8 @@ import androidx.activity.addCallback ...@@ -7,6 +7,8 @@ import androidx.activity.addCallback
import com.base.datarecovery.bean.ConstObject.fcmNotification import com.base.datarecovery.bean.ConstObject.fcmNotification
import com.base.datarecovery.bean.ConstObject.stayNotification import com.base.datarecovery.bean.ConstObject.stayNotification
import com.base.datarecovery.databinding.ActivitySettingBinding import com.base.datarecovery.databinding.ActivitySettingBinding
import com.base.datarecovery.fcm.FCMManager.subscribeToTopic
import com.base.datarecovery.fcm.FCMManager.unsubscribeFromTopic
import com.base.datarecovery.help.BaseActivity import com.base.datarecovery.help.BaseActivity
import com.base.datarecovery.help.ConfigHelper import com.base.datarecovery.help.ConfigHelper
import com.base.datarecovery.service.StayNotificationService import com.base.datarecovery.service.StayNotificationService
...@@ -48,9 +50,9 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() { ...@@ -48,9 +50,9 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
binding.switchFcmNotification.setOnCheckedChangeListener { buttonView, isChecked -> binding.switchFcmNotification.setOnCheckedChangeListener { buttonView, isChecked ->
fcmNotification = isChecked fcmNotification = isChecked
if (isChecked) { if (isChecked) {
// subscribeToTopic(ConfigHelper.packageName) subscribeToTopic(ConfigHelper.packageName)
} else { } else {
// unsubscribeFromTopic(ConfigHelper.packageName) unsubscribeFromTopic(ConfigHelper.packageName)
} }
} }
......
...@@ -197,6 +197,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() { ...@@ -197,6 +197,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
private var processTime = 0L private var processTime = 0L
private var outTimeAdStart = false private var outTimeAdStart = false
private fun startProgress() = lifecycleScope.launch { private fun startProgress() = lifecycleScope.launch {
LogEx.logDebug(TAG,"startProgress")
while (isActive) { while (isActive) {
val value = binding.pb.progress + 2 val value = binding.pb.progress + 2
binding.pb.setProgress(value, true) binding.pb.setProgress(value, true)
......
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