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
00120edd
Commit
00120edd
authored
Jul 29, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
e70ee370
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
GuideFragment.kt
...com/base/filerecoveryrecyclebin/fragment/GuideFragment.kt
+4
-0
NewComUtils.kt
...java/com/base/filerecoveryrecyclebin/utils/NewComUtils.kt
+1
-1
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/fragment/GuideFragment.kt
View file @
00120edd
...
@@ -9,9 +9,12 @@ import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
...
@@ -9,9 +9,12 @@ import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
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
import
com.base.filerecoveryrecyclebin.utils.LogEx
class
GuideFragment
constructor
()
:
BaseFragment
<
FragmentGuideBinding
>()
{
class
GuideFragment
constructor
()
:
BaseFragment
<
FragmentGuideBinding
>()
{
private
val
TAG
=
"GuideFragment"
var
page
:
Int
=
1
var
page
:
Int
=
1
override
val
binding
:
FragmentGuideBinding
by
lazy
{
override
val
binding
:
FragmentGuideBinding
by
lazy
{
...
@@ -53,6 +56,7 @@ class GuideFragment constructor() : BaseFragment<FragmentGuideBinding>() {
...
@@ -53,6 +56,7 @@ class GuideFragment constructor() : BaseFragment<FragmentGuideBinding>() {
// isInstallVip = false
// isInstallVip = false
}
else
{
}
else
{
val
showAd
=
AppPreferences
.
getInstance
().
getString
(
"isShowGuideAd"
,
"0"
)
?.
toInt
()
val
showAd
=
AppPreferences
.
getInstance
().
getString
(
"isShowGuideAd"
,
"0"
)
?.
toInt
()
LogEx
.
logDebug
(
TAG
,
"showAd=$showAd"
)
if
(
showAd
==
1
)
{
if
(
showAd
==
1
)
{
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
requireActivity
())
{
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
requireActivity
())
{
startActivity
(
Intent
(
requireContext
(),
MainActivity
::
class
.
java
))
startActivity
(
Intent
(
requireContext
(),
MainActivity
::
class
.
java
))
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/utils/NewComUtils.kt
View file @
00120edd
...
@@ -26,7 +26,7 @@ object NewComUtils {
...
@@ -26,7 +26,7 @@ object NewComUtils {
private
val
url
:
String
by
lazy
{
private
val
url
:
String
by
lazy
{
val
packageName
=
ConfigHelper
.
packageName
val
packageName
=
ConfigHelper
.
packageName
val
appCode
=
packageName
.
substringAfter
(
PACKAGE_NAME_PREFIX
).
take
(
5
).
toLowerCase
(
Locale
.
getDefault
())
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
//origin user = only pick &source=origin
...
...
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