import android.widget.TableRow;
import android.widget.TextView;
+import java.util.Date;
import java.util.Objects;
/*
saver = new SaveTransactionTask(this);
saver.setPref(PreferenceManager.getDefaultSharedPreferences(this));
- LedgerTransaction tr = new LedgerTransaction(text_date.getText().toString(), text_descr.getText().toString());
+ String date = text_date.getText().toString();
+ if (date.isEmpty()) date = String.valueOf(new Date().getDate());
+ LedgerTransaction tr = new LedgerTransaction(date, text_descr.getText().toString());
TableLayout table = findViewById(R.id.new_transaction_accounts_table);
for ( int i = 0; i < table.getChildCount(); i++ ) {
<string name="pref_title_backend_auth_password">Парола</string>
<string name="title_activity_new_transaction">Нова трансакция</string>
<string name="new_transaction_account_hint">Сметка</string>
- <string name="new_transaction_date_hint">даÑ\82а</string>
+ <string name="new_transaction_date_hint">днеÑ\81</string>
<string name="menu_add_account">Добавяне на сметка</string>
<string name="msg_at_least_two_accounts_are_required">Задължително е използването на поне две сметки</string>
<string name="err_net_io_error">Мрежова грешка</string>
<string name="pref_title_backend_auth_password">Password</string>
<string name="title_activity_new_transaction">New Transaction</string>
<string name="new_transaction_account_hint">Account</string>
- <string name="new_transaction_date_hint">date</string>
+ <string name="new_transaction_date_hint">today</string>
<string name="new_transaction_amount_hint" translatable="false">0.00</string>
<string name="menu_add_account">Add another acount</string>
<string name="msg_at_least_two_accounts_are_required">At least two accounts are required</string>