File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
app/src/main/java/org/gnucash/android/ui/transaction Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,10 @@ public void onActivityCreated(Bundle savedInstanceState) {
154
154
view .findViewById (R .id .input_accounts_spinner ).setEnabled (false );
155
155
view .findViewById (R .id .btn_remove_split ).setVisibility (View .GONE );
156
156
157
- // Get Preference about showing signum in Splits
158
- boolean shallDisplayNegativeSignumInSplits = PreferenceManager .getDefaultSharedPreferences (getActivity ())
159
- .getBoolean (getString (R .string .key_display_negative_signum_in_splits ),
160
- false );
161
- accountType .displayBalance (mImbalanceTextView ,
157
+ // Display imbalance with signum and currency as if it was an asset
158
+ AccountType .ASSET .displayBalance (mImbalanceTextView ,
162
159
new Money (mBaseAmount .negate (),
163
- mCommodity ),
164
- shallDisplayNegativeSignumInSplits );
160
+ mCommodity ));
165
161
}
166
162
167
163
}
@@ -660,15 +656,12 @@ public void afterTextChanged(Editable editable) {
660
656
661
657
} // for
662
658
663
- // Get Preference about showing signum in Splits
664
- boolean shallDisplayNegativeSignumInSplits = PreferenceManager .getDefaultSharedPreferences (getActivity ())
665
- .getBoolean (getString (R .string .key_display_negative_signum_in_splits ),
666
- false );
659
+ // AccountType accountType = mAccountsDbAdapter.getAccountType(mAccountUID);
667
660
661
+ // Display imbalance with signum and currency as if it was an asset
668
662
AccountType .ASSET .displayBalance (mImbalanceTextView ,
669
663
new Money (imbalance ,
670
- mCommodity ),
671
- shallDisplayNegativeSignumInSplits );
664
+ mCommodity ));
672
665
}
673
666
}
674
667
You can’t perform that action at this time.
0 commit comments