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
fc679e59
Commit
fc679e59
authored
Jul 05, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
c09a9fbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
DialogViews.kt
...in/java/com/test/easy/easycleanerjunk/view/DialogViews.kt
+6
-1
No files found.
app/src/main/java/com/test/easy/easycleanerjunk/view/DialogViews.kt
View file @
fc679e59
...
...
@@ -6,6 +6,7 @@ import android.content.Context
import
android.graphics.Color
import
android.graphics.drawable.ColorDrawable
import
android.view.LayoutInflater
import
android.widget.ImageView
import
android.widget.TextView
import
com.test.easy.easycleanerjunk.R
import
com.test.easy.easycleanerjunk.activity.photocompress.photo.CustomDialog
...
...
@@ -96,6 +97,7 @@ object DialogViews {
dialog
.
show
()
}
@SuppressLint
(
"SetTextI18n"
)
fun
Context
.
showDialogFunctionExit
(
function
:
String
,
okAction
:
()
->
Unit
)
{
val
desc
=
when
(
function
)
{
JUNK_CLEANER
->
"Exit Junk Cleaner? Unremoved junk files may be taking up space."
...
...
@@ -111,8 +113,11 @@ object DialogViews {
val
dialog
=
CustomDialog
(
this
,
R
.
layout
.
dialog_function_exit
)
dialog
.
findViewById
<
ImageView
>(
R
.
id
.
iv_close
).
setOnClickListener
{
dialog
.
dismiss
()
}
dialog
.
findViewById
<
TextView
>(
R
.
id
.
tv_tittle
).
text
=
function
dialog
.
findViewById
<
TextView
>(
R
.
id
.
tv_desc
).
text
=
desc
dialog
.
findViewById
<
TextView
>(
R
.
id
.
tv_desc
).
text
=
"Exit $desc?"
dialog
.
findViewById
<
TextView
>(
R
.
id
.
tv_cancel
).
setOnClickListener
{
dialog
.
dismiss
()
}
...
...
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