diff --git a/app/src/main/java/com/topjohnwu/magisk/SettingsFragment.java b/app/src/main/java/com/topjohnwu/magisk/SettingsFragment.java index 97d3d4337..086530b4d 100644 --- a/app/src/main/java/com/topjohnwu/magisk/SettingsFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/SettingsFragment.java @@ -16,10 +16,6 @@ import butterknife.ButterKnife; public class SettingsFragment extends PreferenceFragment { private CheckBoxPreference quickTilePreference; - private CheckBoxPreference devLogPreference; - private CheckBoxPreference keepRootOffPreference; - private CheckBoxPreference hideRootNotificationPreference; - @Override public void onCreate(Bundle savedInstanceState) { @@ -41,9 +37,8 @@ public class SettingsFragment extends PreferenceFragment { View view = super.onCreateView(inflater, container, savedInstanceState); ButterKnife.bind(this, view); quickTilePreference = (CheckBoxPreference) findPreference("enable_quicktile"); - devLogPreference = (CheckBoxPreference) findPreference("developer_logging"); - keepRootOffPreference = (CheckBoxPreference) findPreference("keep_root_off"); - hideRootNotificationPreference = (CheckBoxPreference) findPreference("hide_root_notification"); + CheckBoxPreference keepRootOffPreference = (CheckBoxPreference) findPreference("keep_root_off"); + CheckBoxPreference hideRootNotificationPreference = (CheckBoxPreference) findPreference("hide_root_notification"); if (Utils.magiskVersion == -1) { 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; }; diff --git a/app/src/main/java/com/topjohnwu/magisk/utils/ApplicationAdapter.java b/app/src/main/java/com/topjohnwu/magisk/utils/ApplicationAdapter.java index d345e728d..f55b68d99 100644 --- a/app/src/main/java/com/topjohnwu/magisk/utils/ApplicationAdapter.java +++ b/app/src/main/java/com/topjohnwu/magisk/utils/ApplicationAdapter.java @@ -47,6 +47,7 @@ public class ApplicationAdapter extends ArrayAdapter { return position; } + @Override public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; diff --git a/app/src/main/java/com/topjohnwu/magisk/utils/WebWindow.java b/app/src/main/java/com/topjohnwu/magisk/utils/WebWindow.java index d48136c7f..a1cb40831 100644 --- a/app/src/main/java/com/topjohnwu/magisk/utils/WebWindow.java +++ b/app/src/main/java/com/topjohnwu/magisk/utils/WebWindow.java @@ -24,9 +24,7 @@ public WebWindow(String title, String url, Context context) { }); alert.setView(wv); - alert.setNegativeButton("Close", (dialog, id) -> { - dialog.dismiss(); - }); + alert.setNegativeButton("Close", (dialog, id) -> dialog.dismiss()); alert.show(); }