do_add_account_row(true);
}
+ public
+ void resetTransactionFromMenu(MenuItem item) {
+ reset_form();
+ }
+
public void saveTransactionFromMenu(MenuItem item) {
save_transaction();
}
android:title="@string/menu_add_account"
android:visible="false"
app:showAsAction="never|ifRoom" />
- </menu>
\ No newline at end of file
+ <item
+ android:id="@+id/action_reset_new_transaction_activity"
+ android:icon="@drawable/ic_refresh_white_24dp"
+ android:onClick="resetTransactionFromMenu"
+ android:title="@string/action_reset_new_transaction_activity_title"
+ app:showAsAction="ifRoom|withText" />
+</menu>
\ No newline at end of file
<string name="menu_acc_summary_refresh_title">Обновяване</string>
<string name="err_net_error">Мрежова грешка</string>
<string name="menu_acc_summary_show_hidden_accounts_title">Показване на скритите сметки</string>
+ <string name="action_reset_new_transaction_activity_title">Отначало</string>
</resources>
\ No newline at end of file
<string name="menu_hide_acc_condensed_title">Hide</string>
<string name="menu_acc_summary_show_hidden_accounts_title">Show hidden accounts</string>
<string name="err_bad_auth">Invalid username or password</string>
+ <string name="action_reset_new_transaction_activity_title">Reset</string>
</resources>