File tree Expand file tree Collapse file tree
app/src/org/gnucash/android/ui/transaction Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -343,15 +343,17 @@ private void initializeViewsWithTransaction(){
343343
344344 //if there are more than two splits (which is the default for one entry), then
345345 //disable editing of the transfer account. User should open editor
346- if (mTransaction .getSplits ().size () > 2 ) {
347- setAmountEditViewVisible (View .GONE );
348- } else {
346+ if (mSplitsList .size () == 2 && mSplitsList .get (0 ).isPairOf (mSplitsList .get (1 ))) {
349347 for (Split split : mTransaction .getSplits ()) {
350348 //two splits, one belongs to this account and the other to another account
351349 if (mUseDoubleEntry && !split .getAccountUID ().equals (mAccountUID )) {
352350 setSelectedTransferAccount (mAccountsDbAdapter .getAccountID (split .getAccountUID ()));
353351 }
354352 }
353+ } else {
354+ if (mUseDoubleEntry ) {
355+ setAmountEditViewVisible (View .GONE );
356+ }
355357 }
356358 mSplitsList = new ArrayList <Split >(mTransaction .getSplits ()); //we need a copy so we can modify with impunity
357359 mAmountEditText .setEnabled (mSplitsList .size () <= 2 );
You can’t perform that action at this time.
0 commit comments