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
2402010d
Commit
2402010d
authored
Sep 24, 2016
by
d8ahazard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oh Github app, I hate you sometimes...
Because it decided not to notice these files...
parent
16c80410
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
21 deletions
+4
-21
SettingsFragment.java
app/src/main/java/com/topjohnwu/magisk/SettingsFragment.java
+2
-18
ApplicationAdapter.java
...n/java/com/topjohnwu/magisk/utils/ApplicationAdapter.java
+1
-0
WebWindow.java
app/src/main/java/com/topjohnwu/magisk/utils/WebWindow.java
+1
-3
No files found.
app/src/main/java/com/topjohnwu/magisk/SettingsFragment.java
View file @
2402010d
...
@@ -16,10 +16,6 @@ import butterknife.ButterKnife;
...
@@ -16,10 +16,6 @@ import butterknife.ButterKnife;
public
class
SettingsFragment
extends
PreferenceFragment
{
public
class
SettingsFragment
extends
PreferenceFragment
{
private
CheckBoxPreference
quickTilePreference
;
private
CheckBoxPreference
quickTilePreference
;
private
CheckBoxPreference
devLogPreference
;
private
CheckBoxPreference
keepRootOffPreference
;
private
CheckBoxPreference
hideRootNotificationPreference
;
@Override
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
public
void
onCreate
(
Bundle
savedInstanceState
)
{
...
@@ -41,9 +37,8 @@ public class SettingsFragment extends PreferenceFragment {
...
@@ -41,9 +37,8 @@ public class SettingsFragment extends PreferenceFragment {
View
view
=
super
.
onCreateView
(
inflater
,
container
,
savedInstanceState
);
View
view
=
super
.
onCreateView
(
inflater
,
container
,
savedInstanceState
);
ButterKnife
.
bind
(
this
,
view
);
ButterKnife
.
bind
(
this
,
view
);
quickTilePreference
=
(
CheckBoxPreference
)
findPreference
(
"enable_quicktile"
);
quickTilePreference
=
(
CheckBoxPreference
)
findPreference
(
"enable_quicktile"
);
devLogPreference
=
(
CheckBoxPreference
)
findPreference
(
"developer_logging"
);
CheckBoxPreference
keepRootOffPreference
=
(
CheckBoxPreference
)
findPreference
(
"keep_root_off"
);
keepRootOffPreference
=
(
CheckBoxPreference
)
findPreference
(
"keep_root_off"
);
CheckBoxPreference
hideRootNotificationPreference
=
(
CheckBoxPreference
)
findPreference
(
"hide_root_notification"
);
hideRootNotificationPreference
=
(
CheckBoxPreference
)
findPreference
(
"hide_root_notification"
);
if
(
Utils
.
magiskVersion
==
-
1
)
{
if
(
Utils
.
magiskVersion
==
-
1
)
{
quickTilePreference
.
setEnabled
(
false
);
quickTilePreference
.
setEnabled
(
false
);
...
@@ -65,18 +60,7 @@ public class SettingsFragment extends PreferenceFragment {
...
@@ -65,18 +60,7 @@ public class SettingsFragment extends PreferenceFragment {
}
}
}
}
if
(
preference
==
devLogPreference
)
{
boolean
isChecked
=
devLogPreference
.
isChecked
();
}
if
(
preference
==
keepRootOffPreference
)
{
boolean
isChecked
=
devLogPreference
.
isChecked
();
}
if
(
preference
==
hideRootNotificationPreference
)
{
boolean
isChecked
=
devLogPreference
.
isChecked
();
}
return
false
;
return
false
;
};
};
...
...
app/src/main/java/com/topjohnwu/magisk/utils/ApplicationAdapter.java
View file @
2402010d
...
@@ -47,6 +47,7 @@ public class ApplicationAdapter extends ArrayAdapter<ApplicationInfo> {
...
@@ -47,6 +47,7 @@ public class ApplicationAdapter extends ArrayAdapter<ApplicationInfo> {
return
position
;
return
position
;
}
}
@Override
@Override
public
View
getView
(
int
position
,
View
convertView
,
ViewGroup
parent
)
{
public
View
getView
(
int
position
,
View
convertView
,
ViewGroup
parent
)
{
View
view
=
convertView
;
View
view
=
convertView
;
...
...
app/src/main/java/com/topjohnwu/magisk/utils/WebWindow.java
View file @
2402010d
...
@@ -24,9 +24,7 @@ public WebWindow(String title, String url, Context context) {
...
@@ -24,9 +24,7 @@ public WebWindow(String title, String url, Context context) {
});
});
alert
.
setView
(
wv
);
alert
.
setView
(
wv
);
alert
.
setNegativeButton
(
"Close"
,
(
dialog
,
id
)
->
{
alert
.
setNegativeButton
(
"Close"
,
(
dialog
,
id
)
->
dialog
.
dismiss
());
dialog
.
dismiss
();
});
alert
.
show
();
alert
.
show
();
}
}
...
...
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