Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
SuperEasyClean
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
songjianyu
SuperEasyClean
Commits
b631357f
Commit
b631357f
authored
Jun 06, 2025
by
wanglei
Committed by
songjianyu
Jun 09, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[修改]常驻通知栏不用计入通知小红点
parent
e654049e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
StayNotification.kt
...ava/com/base/appzxhy/business/service/StayNotification.kt
+2
-0
No files found.
app/src/main/java/com/base/appzxhy/business/service/StayNotification.kt
View file @
b631357f
...
@@ -90,11 +90,13 @@ object StayNotification {
...
@@ -90,11 +90,13 @@ object StayNotification {
builder
.
setCustomContentView
(
contentView
)
builder
.
setCustomContentView
(
contentView
)
builder
.
setCustomBigContentView
(
expendView
)
builder
.
setCustomBigContentView
(
expendView
)
builder
.
setCustomHeadsUpContentView
(
expendView
)
builder
.
setCustomHeadsUpContentView
(
expendView
)
builder
.
setNumber
(
0
)
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
val
channel
=
val
channel
=
NotificationChannel
(
channelId
,
channelName
,
NotificationManager
.
IMPORTANCE_LOW
)
NotificationChannel
(
channelId
,
channelName
,
NotificationManager
.
IMPORTANCE_LOW
)
channel
.
lockscreenVisibility
=
1
channel
.
lockscreenVisibility
=
1
channel
.
setShowBadge
(
false
)
val
notificationManager
=
val
notificationManager
=
context
.
getSystemService
(
Context
.
NOTIFICATION_SERVICE
)
as
NotificationManager
context
.
getSystemService
(
Context
.
NOTIFICATION_SERVICE
)
as
NotificationManager
notificationManager
.
createNotificationChannel
(
channel
)
notificationManager
.
createNotificationChannel
(
channel
)
...
...
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