Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
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
appzxhy
Commits
b3860549
Commit
b3860549
authored
Jun 18, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[拆包]ui
parent
22681b7b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
MyNotificationManager.kt
...pzxhy/business/push/notification/MyNotificationManager.kt
+2
-0
NotificationUiUtil.kt
.../appzxhy/business/push/notification/NotificationUiUtil.kt
+14
-0
strings.xml
app/src/main/res/values/strings.xml
+1
-0
No files found.
app/src/main/java/com/base/appzxhy/business/push/notification/MyNotificationManager.kt
View file @
b3860549
...
...
@@ -10,6 +10,7 @@ import com.base.appzxhy.bean.FeatureBean.Companion.LARGE_FILE_CLEAN
import
com.base.appzxhy.bean.FeatureBean.Companion.PHOTO_COMPRESSION
import
com.base.appzxhy.bean.FeatureBean.Companion.SCREENSHOT_CLEAN
import
com.base.appzxhy.bean.FeatureBean.Companion.SIMILAR_PHOTOS
import
com.base.appzxhy.bean.FeatureBean.Companion.UNINSTALL_APP
import
com.base.appzxhy.bean.push.NotificationSendBean
import
com.base.appzxhy.bean.push.NotificationSendBean.Companion.POPUP_WHERE_WORK_MANAGER
import
com.base.appzxhy.bean.config.PopupConfigBean.Companion.popupConfigBean
...
...
@@ -203,6 +204,7 @@ object MyNotificationManager {
// ACTION_ID_TEST,
JUNK_CLEAN
,
SCREENSHOT_CLEAN
,
UNINSTALL_APP
,
LARGE_FILE_CLEAN
,
PHOTO_COMPRESSION
,
BATTERY_INFO
,
...
...
app/src/main/java/com/base/appzxhy/business/push/notification/NotificationUiUtil.kt
View file @
b3860549
...
...
@@ -19,6 +19,7 @@ import com.base.appzxhy.bean.FeatureBean.Companion.LARGE_FILE_CLEAN
import
com.base.appzxhy.bean.FeatureBean.Companion.PHOTO_COMPRESSION
import
com.base.appzxhy.bean.FeatureBean.Companion.SCREENSHOT_CLEAN
import
com.base.appzxhy.bean.FeatureBean.Companion.SIMILAR_PHOTOS
import
com.base.appzxhy.bean.FeatureBean.Companion.UNINSTALL_APP
import
com.base.appzxhy.bean.push.NotificationSendBean
import
com.base.appzxhy.bean.config.PopupConfigBean
import
com.base.appzxhy.ui.splash.SplashActivity
...
...
@@ -83,6 +84,19 @@ object NotificationUiUtil {
// debugAction.invoke(this)
// }
// }
UNINSTALL_APP
->
{
val
text
=
testNotificationId
+
context
.
getString
(
R
.
string
.
notify_uninstall_app
)
sendBean
.
smallRemoteViews
=
RemoteViews
(
context
.
packageName
,
R
.
layout
.
notification_common_small
).
apply
{
setTextViewText
(
R
.
id
.
tv1
,
text
)
setImageViewResource
(
R
.
id
.
ivIcon
,
R
.
drawable
.
icon_app_uninstall
)
debugAction
.
invoke
(
this
)
}
sendBean
.
bigRemoteViews
=
RemoteViews
(
context
.
packageName
,
R
.
layout
.
notification_common_large
).
apply
{
setTextViewText
(
R
.
id
.
tv1
,
text
)
setImageViewResource
(
R
.
id
.
ivIcon
,
R
.
drawable
.
icon_app_uninstall
)
debugAction
.
invoke
(
this
)
}
}
BATTERY_INFO
->
{
val
text
=
testNotificationId
+
context
.
getString
(
R
.
string
.
notify_battery_info
)
...
...
app/src/main/res/values/strings.xml
View file @
b3860549
...
...
@@ -247,6 +247,7 @@ Please rest assured that we will handle your information in strict accordance wi
<string
name=
"experience_it_immediately"
>
Experience it immediately
</string>
<string
name=
"screenshot"
>
Screenshot
</string>
<string
name=
"exit_uninstall_app_content"
>
Exit Uninstall App? Unused applications may occupy phone storage
</string>
<string
name=
"notify_uninstall_app"
>
Uninstall unused applications save phone storage.
</string>
</resources>
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