From 325796ec71fadb20c7e66911e566d1f9ec73f39a Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 9 Dec 2018 12:56:51 +0000 Subject: [PATCH] new transaction: new menu item for resetting the activity --- .../net/ktnx/mobileledger/NewTransactionActivity.java | 5 +++++ app/src/main/res/menu/new_transaction.xml | 8 +++++++- app/src/main/res/values-bg/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java b/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java index 8ec82024..c191e78a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java @@ -283,6 +283,11 @@ public class NewTransactionActivity extends AppCompatActivity implements TaskCal do_add_account_row(true); } + public + void resetTransactionFromMenu(MenuItem item) { + reset_form(); + } + public void saveTransactionFromMenu(MenuItem item) { save_transaction(); } diff --git a/app/src/main/res/menu/new_transaction.xml b/app/src/main/res/menu/new_transaction.xml index 7785b0aa..698dbda2 100644 --- a/app/src/main/res/menu/new_transaction.xml +++ b/app/src/main/res/menu/new_transaction.xml @@ -16,4 +16,10 @@ android:title="@string/menu_add_account" android:visible="false" app:showAsAction="never|ifRoom" /> - \ No newline at end of file + + \ No newline at end of file diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml index 1d88ef22..8ee99e5f 100644 --- a/app/src/main/res/values-bg/strings.xml +++ b/app/src/main/res/values-bg/strings.xml @@ -30,4 +30,5 @@ Обновяване Мрежова грешка Показване на скритите сметки + Отначало \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ad43d6a2..dc2be361 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -74,4 +74,5 @@ Hide Show hidden accounts Invalid username or password + Reset -- 2.39.5