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
2abd0265
Commit
2abd0265
authored
Sep 18, 2016
by
d8ahazard
Browse files
Options
Browse Files
Download
Plain Diff
Merges, and stuff
parents
5898534c
f96865c2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
26 deletions
+23
-26
.gitignore
.gitignore
+2
-1
ReposAdapter.java
app/src/main/java/com/topjohnwu/magisk/ReposAdapter.java
+1
-4
RootFragment.java
app/src/main/java/com/topjohnwu/magisk/RootFragment.java
+20
-21
No files found.
.gitignore
View file @
2abd0265
...
@@ -3,3 +3,4 @@
...
@@ -3,3 +3,4 @@
/local.properties
/local.properties
.idea/
.idea/
/build
/build
app/src/main/java/com/topjohnwu/magisk/RootFragment.java
\ No newline at end of file
app/src/main/java/com/topjohnwu/magisk/ReposAdapter.java
View file @
2abd0265
...
@@ -120,9 +120,6 @@ public class ReposAdapter extends RecyclerView.Adapter<ReposAdapter.ViewHolder>
...
@@ -120,9 +120,6 @@ public class ReposAdapter extends RecyclerView.Adapter<ReposAdapter.ViewHolder>
String
logUrl
=
repo
.
getmLogUrl
();
String
logUrl
=
repo
.
getmLogUrl
();
String
supportUrl
=
repo
.
getmSupportUrl
();
String
supportUrl
=
repo
.
getmSupportUrl
();
String
donateUrl
=
repo
.
getmDonateUrl
();
String
donateUrl
=
repo
.
getmDonateUrl
();
if
(
supportUrl
.
equals
(
""
))
mHolder
.
supportLink
.
setBackgroundColor
(
Color
.
GRAY
);
if
(
logUrl
.
equals
(
""
))
mHolder
.
changeLog
.
setBackgroundColor
(
Color
.
GRAY
);
if
(
donateUrl
.
equals
(
""
))
mHolder
.
authorLink
.
setBackgroundColor
(
Color
.
GRAY
);
if
(
prefs
.
contains
(
"ignoreUpdateAlerts"
))
{
if
(
prefs
.
contains
(
"ignoreUpdateAlerts"
))
{
ignoreAlertUpdate
=
prefs
.
getBoolean
(
"ignoreUpdateAlerts"
,
false
);
ignoreAlertUpdate
=
prefs
.
getBoolean
(
"ignoreUpdateAlerts"
,
false
);
}
}
...
...
app/src/main/java/com/topjohnwu/magisk/RootFragment.java
View file @
2abd0265
...
@@ -236,7 +236,7 @@ public class RootFragment extends Fragment {
...
@@ -236,7 +236,7 @@ public class RootFragment extends Fragment {
break
;
break
;
}
else
{
}
else
{
rootToggle
.
setEnabled
(
true
);
rootToggle
.
setEnabled
(
true
);
if
(
new
File
(
"/
system/x
bin/su"
).
exists
())
{
if
(
new
File
(
"/
magisk/.core/
bin/su"
).
exists
())
{
// Mounted
// Mounted
rootStatusContainer
.
setBackgroundColor
(
accent
);
rootStatusContainer
.
setBackgroundColor
(
accent
);
rootStatusIcon
.
setImageResource
(
statusError
);
rootStatusIcon
.
setImageResource
(
statusError
);
...
@@ -257,7 +257,6 @@ public class RootFragment extends Fragment {
...
@@ -257,7 +257,6 @@ public class RootFragment extends Fragment {
safetyNetStatus
.
setText
(
R
.
string
.
root_unmounted_info
);
safetyNetStatus
.
setText
(
R
.
string
.
root_unmounted_info
);
break
;
break
;
}
}
}
}
case
2
:
case
2
:
// Improper root
// Improper root
...
...
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