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
274f763f
Commit
274f763f
authored
Jul 02, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
5cb3c820
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
NotificationUtil.java
...a/com/test/easy/easycleanerjunk/fcm/NotificationUtil.java
+7
-7
No files found.
app/src/main/java/com/test/easy/easycleanerjunk/fcm/NotificationUtil.java
View file @
274f763f
...
...
@@ -43,7 +43,7 @@ public class NotificationUtil {
}
// Create an Intent for the activity you want to open when the notification is clicked
PendingIntent
pendingIntent
=
PendingIntent
.
getActivity
(
context
,
0
,
intent
,
PendingIntent
.
FLAG_
UPDATE_CURRENT
);
PendingIntent
pendingIntent
=
PendingIntent
.
getActivity
(
context
,
0
,
intent
,
PendingIntent
.
FLAG_
IMMUTABLE
);
Intent
deleteIntent
=
new
Intent
(
context
,
CloseNotificationReceiver
.
class
);
...
...
@@ -182,12 +182,12 @@ public class NotificationUtil {
Intent
cancelIntent
=
new
Intent
(
context
,
CloseNotificationReceiver
.
class
);
cancelIntent
.
setAction
(
"CANCEL_NOTIFICATION"
);
cancelIntent
.
putExtra
(
CloseNotificationReceiver
.
id
,
actionId
);
int
flag
;
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
S
)
{
flag
=
PendingIntent
.
FLAG_MUTABLE
;
}
else
{
flag
=
PendingIntent
.
FLAG_UPDATE_CURRENT
;
}
int
flag
=
PendingIntent
.
FLAG_IMMUTABLE
;
//
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
//
flag = PendingIntent.FLAG_MUTABLE;
//
} else {
// flag = PendingIntent.FLAG_IMMUTABLE
;
//
}
Intent
intent
=
new
Intent
(
context
,
NewSplashActivity
.
class
);
intent
.
putExtra
(
"actionId"
,
actionId
);
...
...
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