We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca4f145 commit 40d759dCopy full SHA for 40d759d
1 file changed
app/src/org/gnucash/android/ui/transaction/dialog/SplitEditorDialogFragment.java
@@ -229,7 +229,8 @@ public void onClick(View view) {
229
updateTransferAccountsList(accountsSpinner);
230
accountsSpinner.setOnItemSelectedListener(new TypeButtonLabelUpdater(splitTypeButton));
231
232
- Currency accountCurrency = Currency.getInstance(mAccountsDbAdapter.getCurrencyCode(split.getAccountUID()));
+ Currency accountCurrency = Currency.getInstance(mAccountsDbAdapter.getCurrencyCode(
233
+ split == null ? mAccountUID : split.getAccountUID()));
234
splitCurrencyTextView.setText(accountCurrency.getSymbol());
235
splitTypeButton.setAmountFormattingListener(splitAmountEditText, splitCurrencyTextView);
236
splitTypeButton.setChecked(mBaseAmount.signum() > 0);
0 commit comments