diff --git a/app/src/main/java/com/herbron/moodl/Activities/RecordTransactionActivity.java b/app/src/main/java/com/herbron/moodl/Activities/RecordTransactionActivity.java index 5234e0f..5c72977 100644 --- a/app/src/main/java/com/herbron/moodl/Activities/RecordTransactionActivity.java +++ b/app/src/main/java/com/herbron/moodl/Activities/RecordTransactionActivity.java @@ -87,6 +87,8 @@ public class RecordTransactionActivity extends AppCompatActivity implements Curr private boolean isGlobalLayoutVisible; + private Intent callingIntent; + private TextWatcher coinTextWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { @@ -145,10 +147,20 @@ public class RecordTransactionActivity extends AppCompatActivity implements Curr setupBackButton(); } + @Override + protected void onStop() { + super.onStop(); + + if(callingIntent != null) + { + callingIntent.removeExtra("transactionId"); + } + } + private void checkCallingIntent() { - Intent intent = getIntent(); - int transactionId = intent.getIntExtra("transactionId", -1); + callingIntent = getIntent(); + int transactionId = callingIntent.getIntExtra("transactionId", -1); if(transactionId != -1) { diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 35046e9..af42838 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -134,6 +134,11 @@ Autre / Inconnu + + Pourcentage + Fixe + + Pourcentage de coin émis : %1$s%% Edition d\'une transaction de %1$s Nouvelle transaction diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f9ca46b..5c9c16d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -174,6 +174,11 @@ Other / Unknown + + Percentage + Fixed + + (%1$s) %1$s%2$s @@ -291,5 +296,6 @@ Sell price Sell date Date of transfert + This transaction is not valid