-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the transaction have some problem? #97
Does the transaction have some problem? #97
Conversation
if (splits.size() == 2) { | ||
Split first = splits.get(0); | ||
for (Split split : splits) { | ||
if ((first != split) && first.isPairOf(split)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to do the same as in TransactionsListFragment.java
? Just:
if (splits.size() == 2) {
if (splits.get(0).isPairOf(splits.get(1))) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about that? Because I see each file has different logic here
Can you please add at least a brief description? What does this PR do? The change looks like just a rearrangement of code. |
Thanks for the screenshot. You mean that the 3rd tx ("ForEx") doesn't show it's target account? |
How to reproduce that? |
In the splits screen - make sure there is imbalance. |
I can't, it automatically adds 3rd account (imbalance account) and shows up just like your "AmEx" tx (with subtitle "3 splits"). |
Yeah, and then, when I click Save, then Save again, the tx gets saved with an additional Imbalance account, and the subtitle shows "3 splits". In which version does the bug show? I checked in your Google Play version. |
0865ce5
to
04f244b
Compare
04f244b
to
350b6f9
Compare
Looks very strange when the secondary label is blank.