Revert "Added option for default answer action"

This reverts commit 8a7c3e742d.
This commit is contained in:
M66B
2023-01-19 11:52:05 +01:00
parent 8a7c3e742d
commit 507e62f5ec
4 changed files with 3 additions and 31 deletions

View File

@@ -79,7 +79,6 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
private SwitchCompat swDiscardDelete;
private Spinner spSendDelayed;
private Spinner spAnswerAction;
private SwitchCompat swAnswerDefault;
private Button btnSound;
private ViewButtonColor btnComposeColor;
@@ -122,7 +121,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
"send_reminders", "send_chips", "send_pending",
"auto_save_paragraph", "auto_save_dot", "discard_delete",
"send_delayed",
"answer_action", "answer_default",
"answer_action",
"sound_sent",
"compose_color", "compose_font",
"prefix_once", "prefix_count", "alt_re", "alt_fwd",
@@ -162,7 +161,6 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
swDiscardDelete = view.findViewById(R.id.swDiscardDelete);
spSendDelayed = view.findViewById(R.id.spSendDelayed);
spAnswerAction = view.findViewById(R.id.spAnswerAction);
swAnswerDefault = view.findViewById(R.id.swAnswerDefault);
btnSound = view.findViewById(R.id.btnSound);
btnComposeColor = view.findViewById(R.id.btnComposeColor);
@@ -358,13 +356,6 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
}
});
swAnswerDefault.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("answer_default", checked).apply();
}
});
btnSound.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
@@ -744,8 +735,6 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
break;
}
swAnswerDefault.setChecked(prefs.getBoolean("answer_default", false));
btnComposeColor.setColor(prefs.getInt("compose_color", Color.TRANSPARENT));
String compose_font = prefs.getString("compose_font", "");