Commit 38e2545c authored by wanglei's avatar wanglei

...

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