Oh Github app, I hate you sometimes...
Because it decided not to notice these files...
This commit is contained in:
parent
16c804106a
commit
2402010d24
@ -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 {
|
|||||||
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 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user