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
b0ab55b0
Commit
b0ab55b0
authored
Jul 13, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only show one notification at a time
parent
d2f8496f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
CheckUpdates.java
...c/main/java/com/topjohnwu/magisk/asyncs/CheckUpdates.java
+2
-4
No files found.
app/src/main/java/com/topjohnwu/magisk/asyncs/CheckUpdates.java
View file @
b0ab55b0
...
@@ -13,7 +13,6 @@ public class CheckUpdates extends ParallelTask<Void, Void, Void> {
...
@@ -13,7 +13,6 @@ public class CheckUpdates extends ParallelTask<Void, Void, Void> {
private
static
final
String
UPDATE_JSON
=
"https://raw.githubusercontent.com/topjohnwu/MagiskManager/update/magisk_update.json"
;
private
static
final
String
UPDATE_JSON
=
"https://raw.githubusercontent.com/topjohnwu/MagiskManager/update/magisk_update.json"
;
private
boolean
showNotification
=
false
;
private
boolean
showNotification
=
false
;
public
CheckUpdates
(
Context
context
,
boolean
b
)
{
public
CheckUpdates
(
Context
context
,
boolean
b
)
{
...
@@ -46,11 +45,10 @@ public class CheckUpdates extends ParallelTask<Void, Void, Void> {
...
@@ -46,11 +45,10 @@ public class CheckUpdates extends ParallelTask<Void, Void, Void> {
@Override
@Override
protected
void
onPostExecute
(
Void
v
)
{
protected
void
onPostExecute
(
Void
v
)
{
if
(
showNotification
&&
magiskManager
.
updateNotification
)
{
if
(
showNotification
&&
magiskManager
.
updateNotification
)
{
if
(
magiskManager
.
magiskVersionCode
<
magiskManager
.
remoteMagiskVersionCode
)
{
Utils
.
showMagiskUpdate
(
magiskManager
);
}
if
(
BuildConfig
.
VERSION_CODE
<
magiskManager
.
remoteManagerVersionCode
)
{
if
(
BuildConfig
.
VERSION_CODE
<
magiskManager
.
remoteManagerVersionCode
)
{
Utils
.
showManagerUpdate
(
magiskManager
);
Utils
.
showManagerUpdate
(
magiskManager
);
}
else
if
(
magiskManager
.
magiskVersionCode
<
magiskManager
.
remoteMagiskVersionCode
)
{
Utils
.
showMagiskUpdate
(
magiskManager
);
}
}
}
}
magiskManager
.
updateCheckDone
.
trigger
();
magiskManager
.
updateCheckDone
.
trigger
();
...
...
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