Commit 00120edd authored by wanglei's avatar wanglei

...

parent e70ee370
......@@ -9,9 +9,12 @@ import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import com.base.filerecoveryrecyclebin.databinding.FragmentGuideBinding
import com.base.filerecoveryrecyclebin.help.BaseFragment
import com.base.filerecoveryrecyclebin.utils.AppPreferences
import com.base.filerecoveryrecyclebin.utils.LogEx
class GuideFragment constructor() : BaseFragment<FragmentGuideBinding>() {
private val TAG = "GuideFragment"
var page: Int = 1
override val binding: FragmentGuideBinding by lazy {
......@@ -53,6 +56,7 @@ class GuideFragment constructor() : BaseFragment<FragmentGuideBinding>() {
// isInstallVip = false
} else {
val showAd = AppPreferences.getInstance().getString("isShowGuideAd", "0")?.toInt()
LogEx.logDebug(TAG, "showAd=$showAd")
if (showAd == 1) {
AdmobMaxHelper.admobMaxShowInterstitialAd(requireActivity()) {
startActivity(Intent(requireContext(), MainActivity::class.java))
......
......@@ -26,7 +26,7 @@ object NewComUtils {
private val url: String by lazy {
val packageName = ConfigHelper.packageName
val appCode = packageName.substringAfter(PACKAGE_NAME_PREFIX).take(5).toLowerCase(Locale.getDefault())
"$API_URL/${appCode}spk?pkg=$packageName"
"$API_URL/${appCode}spk?pkg=$packageName&source=channel"
}
//origin user = only pick &source=origin
......
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