Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
swiftcleanerphonehelper
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
swiftcleanerphonehelper
Commits
8b79581b
Commit
8b79581b
authored
Dec 20, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7e330c66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
NotificationUtils.kt
app/src/main/java/com/zxdemo/notity/NotificationUtils.kt
+25
-23
notification_common_small.xml
app/src/main/res/layout/notification_common_small.xml
+1
-1
No files found.
app/src/main/java/com/zxdemo/notity/NotificationUtils.kt
View file @
8b79581b
...
@@ -130,76 +130,78 @@ object NotificationUtils {
...
@@ -130,76 +130,78 @@ object NotificationUtils {
when
(
actionId
)
{
when
(
actionId
)
{
FUNCTION_CLEAN
->
{
FUNCTION_CLEAN
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_cleanjunk
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_cleanjunk
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_cleanjunk
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
val
desc
=
"Clean out junk files to free up space on your phone!"
val
desc
=
"Clean out junk files to free up space on your phone!"
val
descsmall
=
"Swift Cleaner - Phone Helper"
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
small
)
intentAction
=
Global
.
FUNCTION_CLEAN
intentAction
=
Global
.
FUNCTION_CLEAN
}
}
FUNCTION_APP_MANAGER
->
{
FUNCTION_APP_MANAGER
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_appmanager
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_appmanager
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_appmanager
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
val
descsmall
=
"Swift Cleaner - Phone Helper"
val
desc
=
"Clean out junk files to free up space on your phone!"
val
desc
=
"Clean out junk files to free up space on your phone!"
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
small
)
intentAction
=
Global
.
FUNCTION_CLEAN
intentAction
=
Global
.
FUNCTION_CLEAN
}
}
FUNCTION_BATTERY
->
{
FUNCTION_BATTERY
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_batteryinfo
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_batteryinfo
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_batteryinfo
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
val
descsmall
=
"Swift Cleaner - Phone Helper"
val
desc
=
"Clean out junk files to free up space on your phone!"
val
desc
=
"Clean out junk files to free up space on your phone!"
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
small
)
intentAction
=
Global
.
FUNCTION_CLEAN
intentAction
=
Global
.
FUNCTION_CLEAN
}
}
FUNCTION_LARGE_FILE
->
{
FUNCTION_LARGE_FILE
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_large
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_large
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_large
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
val
descsmall
=
"Swift Cleaner - Phone Helper"
val
desc
=
"Clean out junk files to free up space on your phone!"
val
desc
=
"Clean out junk files to free up space on your phone!"
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
small
)
intentAction
=
Global
.
FUNCTION_CLEAN
intentAction
=
Global
.
FUNCTION_CLEAN
}
}
FUNCTION_WHATS_APP
->
{
FUNCTION_WHATS_APP
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_whatsapp
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_whatsapp
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_whatsapp
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
val
descsmall
=
"Swift Cleaner - Phone Helper"
val
desc
=
"Clean out junk files to free up space on your phone!"
val
desc
=
"Clean out junk files to free up space on your phone!"
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
small
)
intentAction
=
Global
.
FUNCTION_CLEAN
intentAction
=
Global
.
FUNCTION_CLEAN
}
}
FUNCTION_APP_PROCESS
->
{
FUNCTION_APP_PROCESS
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
jg__appprocss
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
jg__appprocss
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
jg__appprocss
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
val
descsmall
=
"Swift Cleaner - Phone Helper"
val
desc
=
"Clean out junk files to free up space on your phone!"
val
desc
=
"Clean out junk files to free up space on your phone!"
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
small
)
intentAction
=
Global
.
FUNCTION_CLEAN
intentAction
=
Global
.
FUNCTION_CLEAN
}
}
FUNCTION_SIMILAR_PHOTOS
->
{
FUNCTION_SIMILAR_PHOTOS
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_simiar
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_simiar
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_simiar
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
val
descsmall
=
"Swift Cleaner - Phone Helper"
val
desc
=
"Clean out junk files to free up space on your phone!"
val
desc
=
"Clean out junk files to free up space on your phone!"
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
small
)
intentAction
=
Global
.
FUNCTION_CLEAN
intentAction
=
Global
.
FUNCTION_CLEAN
}
}
FUNCTION_SCREENSHOT
->
{
FUNCTION_SCREENSHOT
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_screenshot
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_screenshot
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_screenshot
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
val
descsmall
=
"Swift Cleaner - Phone Helper"
val
desc
=
"Clean out junk files to free up space on your phone!"
val
desc
=
"Clean out junk files to free up space on your phone!"
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
small
)
intentAction
=
Global
.
FUNCTION_CLEAN
intentAction
=
Global
.
FUNCTION_CLEAN
}
}
...
...
app/src/main/res/layout/notification_common_small.xml
View file @
8b79581b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
66
dp"
android:layout_height=
"
50
dp"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<LinearLayout
<LinearLayout
...
...
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