Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
Easy Cleaner Junk
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
Easy Cleaner Junk
Commits
5e3fbfc8
Commit
5e3fbfc8
authored
Jul 09, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
7543625b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
17 deletions
+10
-17
PrivacyAgreementManager.kt
...asycleanerjunk/activity/splash/PrivacyAgreementManager.kt
+0
-3
HomeFragment.kt
...va/com/test/easy/easycleanerjunk/fragment/HomeFragment.kt
+1
-14
UmpHelp.kt
.../main/java/com/test/easy/easycleanerjunk/helps/UmpHelp.kt
+9
-0
No files found.
app/src/main/java/com/test/easy/easycleanerjunk/activity/splash/PrivacyAgreementManager.kt
View file @
5e3fbfc8
...
@@ -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
{
...
...
app/src/main/java/com/test/easy/easycleanerjunk/fragment/HomeFragment.kt
View file @
5e3fbfc8
...
@@ -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
{
...
...
app/src/main/java/com/test/easy/easycleanerjunk/helps/UmpHelp.kt
View file @
5e3fbfc8
...
@@ -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
)
...
...
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