Commit 0fb9fa34 authored by wanglei's avatar wanglei

...隐藏订阅

parent 9e9c0b2b
...@@ -55,12 +55,12 @@ ...@@ -55,12 +55,12 @@
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait" android:screenOrientation="portrait"
tools:ignore="DiscouragedApi,LockedOrientationActivity" /> tools:ignore="DiscouragedApi,LockedOrientationActivity" />
<activity <!-- <activity-->
android:name=".activity.vip.VipActivity" <!-- android:name=".activity.vip.VipActivity"-->
android:exported="false" <!-- android:exported="false"-->
android:launchMode="singleTop" <!-- android:launchMode="singleTop"-->
android:screenOrientation="portrait" <!-- android:screenOrientation="portrait"-->
tools:ignore="DiscouragedApi,LockedOrientationActivity" /> <!-- tools:ignore="DiscouragedApi,LockedOrientationActivity" />-->
<activity <activity
android:name=".activity.recyclebin.RecycleBinDetailActivity" android:name=".activity.recyclebin.RecycleBinDetailActivity"
android:exported="false" android:exported="false"
......
...@@ -17,14 +17,7 @@ import com.base.filerecoveryrecyclebin.activity.privacyspace.PrivacySpaceActivit ...@@ -17,14 +17,7 @@ import com.base.filerecoveryrecyclebin.activity.privacyspace.PrivacySpaceActivit
import com.base.filerecoveryrecyclebin.activity.recovery.FileScanResultActivity import com.base.filerecoveryrecyclebin.activity.recovery.FileScanResultActivity
import com.base.filerecoveryrecyclebin.activity.repeat.RepeatActivity import com.base.filerecoveryrecyclebin.activity.repeat.RepeatActivity
import com.base.filerecoveryrecyclebin.activity.screenshot.ScreenShotActivity import com.base.filerecoveryrecyclebin.activity.screenshot.ScreenShotActivity
import com.base.filerecoveryrecyclebin.activity.vip.VipActivity
import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import com.base.filerecoveryrecyclebin.ads.admob.AdmobInterstitialUtils
import com.base.filerecoveryrecyclebin.ads.admob.AdmobNativeUtils
import com.base.filerecoveryrecyclebin.ads.max.AdMaxInit
import com.base.filerecoveryrecyclebin.ads.max.AdMaxInterstitialUtils
import com.base.filerecoveryrecyclebin.ads.max.AdMaxNativeUtils
import com.base.filerecoveryrecyclebin.ads.max.AdMaxOpenUtils
import com.base.filerecoveryrecyclebin.bean.ConstObject import com.base.filerecoveryrecyclebin.bean.ConstObject
import com.base.filerecoveryrecyclebin.bean.ConstObject.ID_JUNK_CLEAN_PUSH import com.base.filerecoveryrecyclebin.bean.ConstObject.ID_JUNK_CLEAN_PUSH
import com.base.filerecoveryrecyclebin.bean.ConstObject.ID_PRIVACY_SPACE import com.base.filerecoveryrecyclebin.bean.ConstObject.ID_PRIVACY_SPACE
......
...@@ -12,42 +12,42 @@ import com.base.filerecoveryrecyclebin.databinding.ActivityVipBinding ...@@ -12,42 +12,42 @@ import com.base.filerecoveryrecyclebin.databinding.ActivityVipBinding
import com.base.filerecoveryrecyclebin.help.BaseActivity import com.base.filerecoveryrecyclebin.help.BaseActivity
import com.base.filerecoveryrecyclebin.utils.BarUtils import com.base.filerecoveryrecyclebin.utils.BarUtils
class VipActivity : BaseActivity<ActivityVipBinding>() { //class VipActivity : BaseActivity<ActivityVipBinding>() {
//
override val binding: ActivityVipBinding by lazy { // override val binding: ActivityVipBinding by lazy {
ActivityVipBinding.inflate(layoutInflater) // ActivityVipBinding.inflate(layoutInflater)
} // }
//
override fun initView() { // override fun initView() {
BarUtils.setStatusBarLightMode(this, true) // BarUtils.setStatusBarLightMode(this, true)
BarUtils.setStatusBarColor(this, Color.WHITE) // BarUtils.setStatusBarColor(this, Color.WHITE)
binding.root.updatePadding(top = BarUtils.getStatusBarHeight()) // binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
//
val isSkip = intent.extras?.getBoolean("isSkip") ?: false // val isSkip = intent.extras?.getBoolean("isSkip") ?: false
binding.tvSkip.isVisible = isSkip // binding.tvSkip.isVisible = isSkip
} // }
//
override fun initListener() { // override fun initListener() {
super.initListener() // super.initListener()
//
binding.cardWeek.setOnClickListener { } // binding.cardWeek.setOnClickListener { }
binding.cardMonth.setOnClickListener { } // binding.cardMonth.setOnClickListener { }
binding.cardYear.setOnClickListener { } // binding.cardYear.setOnClickListener { }
//
onBackPressedDispatcher.addCallback { // onBackPressedDispatcher.addCallback {
AdmobMaxHelper.admobMaxShowInterstitialAd(this@VipActivity) { // AdmobMaxHelper.admobMaxShowInterstitialAd(this@VipActivity) {
startActivity(Intent(this@VipActivity, MainActivity::class.java)) // startActivity(Intent(this@VipActivity, MainActivity::class.java))
finish() // finish()
} // }
} // }
binding.flQuit.setOnClickListener { // binding.flQuit.setOnClickListener {
onBackPressedDispatcher.onBackPressed() // onBackPressedDispatcher.onBackPressed()
} // }
binding.tvSkip.setOnClickListener { // binding.tvSkip.setOnClickListener {
onBackPressedDispatcher.onBackPressed() // onBackPressedDispatcher.onBackPressed()
} // }
//
} // }
//
//
} //}
\ No newline at end of file \ No newline at end of file
package com.base.filerecoveryrecyclebin.ads.max package com.base.filerecoveryrecyclebin.ads.max
import android.app.Activity import android.app.Activity
import com.applovin.mediation.MaxAd import com.applovin.mediation.MaxAd
import com.applovin.mediation.MaxAdListener import com.applovin.mediation.MaxAdListener
...@@ -127,9 +128,9 @@ object AdMaxOpenUtils { ...@@ -127,9 +128,9 @@ object AdMaxOpenUtils {
appOpenAd?.showAd() appOpenAd?.showAd()
} else { } else {
val obj = JSONObject() val obj = JSONObject()
obj.put("reason", "no ad") obj.put("reason", "no cache ad")
obj.put("ad_unit", "openAd") obj.put("ad_unit", "openAd")
EventUtils.event("ad_show_error", ext = obj) EventUtils.event("ad_nocache_pull", ext = obj)
LogEx.logDebug(TAG, "展示时候,发现广告需要拉取") LogEx.logDebug(TAG, "展示时候,发现广告需要拉取")
val loaded = loadAppOpenAd(activity) val loaded = loadAppOpenAd(activity)
if (loaded) { if (loaded) {
......
package com.base.filerecoveryrecyclebin.billing
import android.app.Application
import androidx.lifecycle.AndroidViewModel
class BillingViewModel(application: Application):AndroidViewModel(application) {
}
\ No newline at end of file
...@@ -2,14 +2,10 @@ package com.base.filerecoveryrecyclebin.fragment ...@@ -2,14 +2,10 @@ package com.base.filerecoveryrecyclebin.fragment
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Intent import android.content.Intent
import android.view.View
import com.base.filerecoveryrecyclebin.R import com.base.filerecoveryrecyclebin.R
import com.base.filerecoveryrecyclebin.activity.MainActivity import com.base.filerecoveryrecyclebin.activity.MainActivity
import com.base.filerecoveryrecyclebin.activity.guide.GuideActivity import com.base.filerecoveryrecyclebin.activity.guide.GuideActivity
import com.base.filerecoveryrecyclebin.activity.vip.VipActivity
import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import com.base.filerecoveryrecyclebin.bean.ConstObject.isGuide
import com.base.filerecoveryrecyclebin.bean.ConstObject.isInstallVip
import com.base.filerecoveryrecyclebin.databinding.FragmentGuideBinding import com.base.filerecoveryrecyclebin.databinding.FragmentGuideBinding
import com.base.filerecoveryrecyclebin.help.BaseFragment import com.base.filerecoveryrecyclebin.help.BaseFragment
import com.base.filerecoveryrecyclebin.utils.AppPreferences import com.base.filerecoveryrecyclebin.utils.AppPreferences
...@@ -49,12 +45,12 @@ class GuideFragment constructor() : BaseFragment<FragmentGuideBinding>() { ...@@ -49,12 +45,12 @@ class GuideFragment constructor() : BaseFragment<FragmentGuideBinding>() {
} }
private fun jumpNext() { private fun jumpNext() {
if (isInstallVip) { if (false) {
startActivity(Intent(requireContext(), VipActivity::class.java).apply { // startActivity(Intent(requireContext(), VipActivity::class.java).apply {
putExtra("isSkip", true) // putExtra("isSkip", true)
}) // })
requireActivity().finish() // requireActivity().finish()
isInstallVip = false // isInstallVip = false
} else { } else {
val showAd = AppPreferences.getInstance().getString("isShowGuideAd", "0")?.toInt() val showAd = AppPreferences.getInstance().getString("isShowGuideAd", "0")?.toInt()
if (showAd == 1) { if (showAd == 1) {
......
...@@ -8,10 +8,8 @@ import androidx.lifecycle.lifecycleScope ...@@ -8,10 +8,8 @@ import androidx.lifecycle.lifecycleScope
import com.base.filerecoveryrecyclebin.activity.MainActivity import com.base.filerecoveryrecyclebin.activity.MainActivity
import com.base.filerecoveryrecyclebin.activity.SettingActivity import com.base.filerecoveryrecyclebin.activity.SettingActivity
import com.base.filerecoveryrecyclebin.activity.junkclean.ScanJunkActivity import com.base.filerecoveryrecyclebin.activity.junkclean.ScanJunkActivity
import com.base.filerecoveryrecyclebin.activity.photomanager.PhotoManagerActivity
import com.base.filerecoveryrecyclebin.activity.photomanager.PhotoManagerAnimationActivity import com.base.filerecoveryrecyclebin.activity.photomanager.PhotoManagerAnimationActivity
import com.base.filerecoveryrecyclebin.activity.recovery.FileScanResultActivity import com.base.filerecoveryrecyclebin.activity.recovery.FileScanResultActivity
import com.base.filerecoveryrecyclebin.activity.vip.VipActivity
import com.base.filerecoveryrecyclebin.activity.whatsapp.WhatsAppCleanerAnimationActivity import com.base.filerecoveryrecyclebin.activity.whatsapp.WhatsAppCleanerAnimationActivity
import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_AUDIOS import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_AUDIOS
import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_DOCUMENTS import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_DOCUMENTS
...@@ -20,7 +18,6 @@ import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_VIDEOS ...@@ -20,7 +18,6 @@ import com.base.filerecoveryrecyclebin.bean.ConstObject.SCAN_VIDEOS
import com.base.filerecoveryrecyclebin.databinding.FragmentHome3Binding import com.base.filerecoveryrecyclebin.databinding.FragmentHome3Binding
import com.base.filerecoveryrecyclebin.help.BaseFragment import com.base.filerecoveryrecyclebin.help.BaseFragment
import com.base.filerecoveryrecyclebin.help.KotlinExt.toFormatSize import com.base.filerecoveryrecyclebin.help.KotlinExt.toFormatSize
import com.base.filerecoveryrecyclebin.help.PermissionHelp.checkStorePermission
import com.base.filerecoveryrecyclebin.utils.LogEx import com.base.filerecoveryrecyclebin.utils.LogEx
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.collectLatest import kotlinx.coroutines.flow.collectLatest
...@@ -74,9 +71,9 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() { ...@@ -74,9 +71,9 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
binding.flSetting.setOnClickListener { binding.flSetting.setOnClickListener {
startActivity(Intent(requireContext(), SettingActivity::class.java)) startActivity(Intent(requireContext(), SettingActivity::class.java))
} }
binding.ivVip.setOnClickListener { // binding.ivVip.setOnClickListener {
startActivity(Intent(requireContext(), VipActivity::class.java)) // startActivity(Intent(requireContext(), VipActivity::class.java))
} // }
lifecycleScope.launch(Dispatchers.Main) { lifecycleScope.launch(Dispatchers.Main) {
(requireActivity() as MainActivity).photoSizeFlow.collectLatest { (requireActivity() as MainActivity).photoSizeFlow.collectLatest {
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:src="@mipmap/h_vipicon" android:src="@mipmap/h_vipicon"
android:visibility="gone"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
<FrameLayout <FrameLayout
...@@ -69,11 +70,11 @@ ...@@ -69,11 +70,11 @@
<FrameLayout <FrameLayout
android:layout_marginTop="-20dp"
android:id="@+id/fl_scan" android:id="@+id/fl_scan"
android:layout_width="280dp" android:layout_width="280dp"
android:layout_height="280dp" android:layout_height="280dp"
android:layout_gravity="center_horizontal"> android:layout_gravity="center_horizontal"
android:layout_marginTop="-20dp">
<com.base.filerecoveryrecyclebin.view.XmlLottieAnimationView <com.base.filerecoveryrecyclebin.view.XmlLottieAnimationView
android:id="@+id/lottie" android:id="@+id/lottie"
......
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