Commit 5e3fbfc8 authored by wanglei's avatar wanglei

...

parent 7543625b
...@@ -6,13 +6,10 @@ import android.net.Uri ...@@ -6,13 +6,10 @@ import android.net.Uri
import android.text.SpannableString import android.text.SpannableString
import android.text.Spanned import android.text.Spanned
import android.text.style.UnderlineSpan import android.text.style.UnderlineSpan
import android.widget.Toast
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 import com.test.easy.easycleanerjunk.helps.EventUtils
import com.test.easy.easycleanerjunk.helps.LogEx
import com.test.easy.easycleanerjunk.helps.UmpHelp.requestUMP
class PrivacyAgreementManager { class PrivacyAgreementManager {
......
...@@ -18,9 +18,7 @@ import com.test.easy.easycleanerjunk.activity.similarphotos.RepeatPhotoAnimation ...@@ -18,9 +18,7 @@ import com.test.easy.easycleanerjunk.activity.similarphotos.RepeatPhotoAnimation
import com.test.easy.easycleanerjunk.activity.whatsapp.WhatsAppCleanerAnimationActivity import com.test.easy.easycleanerjunk.activity.whatsapp.WhatsAppCleanerAnimationActivity
import com.test.easy.easycleanerjunk.databinding.FragmentLayoutHomeBinding import com.test.easy.easycleanerjunk.databinding.FragmentLayoutHomeBinding
import com.test.easy.easycleanerjunk.helps.BaseFragment import com.test.easy.easycleanerjunk.helps.BaseFragment
import com.test.easy.easycleanerjunk.helps.ConfigHelper
import com.test.easy.easycleanerjunk.helps.KotlinExt.setOnClickListener import com.test.easy.easycleanerjunk.helps.KotlinExt.setOnClickListener
import com.test.easy.easycleanerjunk.helps.UmpHelp.requestUMP
import com.test.easy.easycleanerjunk.utils.BarUtils import com.test.easy.easycleanerjunk.utils.BarUtils
class HomeFragment : BaseFragment<FragmentLayoutHomeBinding>() { class HomeFragment : BaseFragment<FragmentLayoutHomeBinding>() {
...@@ -74,18 +72,7 @@ class HomeFragment : BaseFragment<FragmentLayoutHomeBinding>() { ...@@ -74,18 +72,7 @@ class HomeFragment : BaseFragment<FragmentLayoutHomeBinding>() {
binding.idScrollView.fullScroll(ScrollView.FOCUS_DOWN) binding.idScrollView.fullScroll(ScrollView.FOCUS_DOWN)
} }
listOf(binding.idCleanJunk, binding.idFlClean, binding.idCleanUp).setOnClickListener { listOf(binding.idCleanJunk, binding.idFlClean, binding.idCleanUp).setOnClickListener {
// startActivity(Intent(requireContext(), ScanJunkActivity::class.java)) startActivity(Intent(requireContext(), ScanJunkActivity::class.java))
requireActivity().requestUMP(loadAndShowErrorAction = {
Toast.makeText(context, "loadAndShowErrorAction", Toast.LENGTH_SHORT).show()
}, formErrorAction = {
Toast.makeText(context, "formErrorAction", Toast.LENGTH_SHORT).show()
},
dialogAction = {
Toast.makeText(context, "dialogAction flag=$it", Toast.LENGTH_SHORT).show()
})
} }
binding.idPhotoCompress.setOnClickListener { binding.idPhotoCompress.setOnClickListener {
......
...@@ -14,6 +14,15 @@ import com.test.easy.easycleanerjunk.helps.UmpHelp.requestUMP ...@@ -14,6 +14,15 @@ import com.test.easy.easycleanerjunk.helps.UmpHelp.requestUMP
object UmpHelp { object UmpHelp {
// requireActivity().requestUMP(loadAndShowErrorAction = {
// Toast.makeText(context, "loadAndShowErrorAction", Toast.LENGTH_SHORT).show()
// }, formErrorAction = {
// Toast.makeText(context, "formErrorAction", Toast.LENGTH_SHORT).show()
// },
// dialogAction = {
// Toast.makeText(context, "dialogAction flag=$it", Toast.LENGTH_SHORT).show()
//
// })
private fun Context.umpTest(): ConsentDebugSettings { private fun Context.umpTest(): ConsentDebugSettings {
val debugSettings = ConsentDebugSettings.Builder(this) val debugSettings = ConsentDebugSettings.Builder(this)
......
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