Refactoring

pull/214/head
M66B 1 year ago
parent 6fe0d93504
commit 9f161ef35f

@ -69,8 +69,8 @@ public class FragmentDialogSend extends FragmentDialogBase {
@NonNull @NonNull
@Override @Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
Bundle args = getArguments(); final Bundle args = getArguments();
long id = args.getLong("id"); final long id = args.getLong("id");
final boolean sent_missing = args.getBoolean("sent_missing", false); final boolean sent_missing = args.getBoolean("sent_missing", false);
final String address_error = args.getString("address_error"); final String address_error = args.getString("address_error");
final String mx_error = args.getString("mx_error"); final String mx_error = args.getString("mx_error");
@ -93,7 +93,7 @@ public class FragmentDialogSend extends FragmentDialogBase {
final Context context = getContext(); final Context context = getContext();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
final boolean send_reminders = prefs.getBoolean("send_reminders", true); final boolean send_reminders = prefs.getBoolean("send_reminders", true);
final int send_delayed = prefs.getInt("send_delayed", 0); final int send_delayed = prefs.getInt("send_delayed", 0);
final boolean send_dialog = prefs.getBoolean("send_dialog", true); final boolean send_dialog = prefs.getBoolean("send_dialog", true);

Loading…
Cancel
Save