|
|
@ -34,6 +34,7 @@ import androidx.annotation.Nullable;
|
|
|
|
public class FragmentOptions extends FragmentEx {
|
|
|
|
public class FragmentOptions extends FragmentEx {
|
|
|
|
private CheckBox cbAvatars;
|
|
|
|
private CheckBox cbAvatars;
|
|
|
|
private CheckBox cbLight;
|
|
|
|
private CheckBox cbLight;
|
|
|
|
|
|
|
|
private CheckBox cbBrowse;
|
|
|
|
private CheckBox cbDebug;
|
|
|
|
private CheckBox cbDebug;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -46,6 +47,7 @@ public class FragmentOptions extends FragmentEx {
|
|
|
|
// Get controls
|
|
|
|
// Get controls
|
|
|
|
cbAvatars = view.findViewById(R.id.cbAvatars);
|
|
|
|
cbAvatars = view.findViewById(R.id.cbAvatars);
|
|
|
|
cbLight = view.findViewById(R.id.cbLight);
|
|
|
|
cbLight = view.findViewById(R.id.cbLight);
|
|
|
|
|
|
|
|
cbBrowse = view.findViewById(R.id.cbBrowse);
|
|
|
|
cbDebug = view.findViewById(R.id.cbDebug);
|
|
|
|
cbDebug = view.findViewById(R.id.cbDebug);
|
|
|
|
|
|
|
|
|
|
|
|
// Wire controls
|
|
|
|
// Wire controls
|
|
|
@ -68,6 +70,14 @@ public class FragmentOptions extends FragmentEx {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cbBrowse.setChecked(prefs.getBoolean("browse", true));
|
|
|
|
|
|
|
|
cbBrowse.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("browse", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
cbDebug.setChecked(prefs.getBoolean("debug", false));
|
|
|
|
cbDebug.setChecked(prefs.getBoolean("debug", false));
|
|
|
|
cbDebug.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
cbDebug.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|