Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
e658f929
Commit
e658f929
authored
Dec 03, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make progress notifications persist
parent
2b502e9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Notifications.java
...l/java/com/topjohnwu/magisk/components/Notifications.java
+2
-1
ProgressNotification.java
...com/topjohnwu/magisk/components/ProgressNotification.java
+4
-2
No files found.
app/src/full/java/com/topjohnwu/magisk/components/Notifications.java
View file @
e658f929
...
...
@@ -107,7 +107,8 @@ public class Notifications {
builder
.
setPriority
(
NotificationCompat
.
PRIORITY_LOW
)
.
setSmallIcon
(
android
.
R
.
drawable
.
stat_sys_download
)
.
setContentTitle
(
title
)
.
setProgress
(
0
,
0
,
true
);
.
setProgress
(
0
,
0
,
true
)
.
setOngoing
(
true
);
return
builder
;
}
}
app/src/full/java/com/topjohnwu/magisk/components/ProgressNotification.java
View file @
e658f929
...
...
@@ -50,14 +50,16 @@ public class ProgressNotification implements DownloadProgressListener {
public
void
dlDone
()
{
builder
.
setProgress
(
0
,
0
,
false
)
.
setContentText
(
Data
.
MM
().
getString
(
R
.
string
.
download_complete
))
.
setSmallIcon
(
R
.
drawable
.
ic_check_circle
);
.
setSmallIcon
(
R
.
drawable
.
ic_check_circle
)
.
setOngoing
(
false
);
update
();
}
public
void
dlFail
()
{
builder
.
setProgress
(
0
,
0
,
false
)
.
setContentText
(
Data
.
MM
().
getString
(
R
.
string
.
download_file_error
))
.
setSmallIcon
(
R
.
drawable
.
ic_cancel
);
.
setSmallIcon
(
R
.
drawable
.
ic_cancel
)
.
setOngoing
(
false
);
update
();
}
...
...
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