Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
File Recovery RecycleBin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
File Recovery RecycleBin
Commits
0fb9fa34
Commit
0fb9fa34
authored
Jul 22, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...隐藏订阅
parent
9e9c0b2b
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
69 additions
and
72 deletions
+69
-72
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+6
-6
SplashActivity.kt
...om/base/filerecoveryrecyclebin/activity/SplashActivity.kt
+0
-7
VipActivity.kt
...m/base/filerecoveryrecyclebin/activity/vip/VipActivity.kt
+39
-39
AdMaxOpenUtils.kt
...com/base/filerecoveryrecyclebin/ads/max/AdMaxOpenUtils.kt
+3
-2
BillingViewModel.kt
...m/base/filerecoveryrecyclebin/billing/BillingViewModel.kt
+9
-0
GuideFragment.kt
...com/base/filerecoveryrecyclebin/fragment/GuideFragment.kt
+6
-10
HomeFragment.kt
.../com/base/filerecoveryrecyclebin/fragment/HomeFragment.kt
+3
-6
fragment_home_3.xml
app/src/main/res/layout/fragment_home_3.xml
+3
-2
No files found.
app/src/main/AndroidManifest.xml
View file @
0fb9fa34
...
@@ -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"
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/activity/SplashActivity.kt
View file @
0fb9fa34
...
@@ -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
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/activity/vip/VipActivity.kt
View file @
0fb9fa34
...
@@ -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
app/src/main/java/com/base/filerecoveryrecyclebin/ads/max/AdMaxOpenUtils.kt
View file @
0fb9fa34
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
)
{
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/billing/BillingViewModel.kt
0 → 100644
View file @
0fb9fa34
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
app/src/main/java/com/base/filerecoveryrecyclebin/fragment/GuideFragment.kt
View file @
0fb9fa34
...
@@ -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
)
{
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/fragment/HomeFragment.kt
View file @
0fb9fa34
...
@@ -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
{
...
...
app/src/main/res/layout/fragment_home_3.xml
View file @
0fb9fa34
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment