Skip to content

Commit

Permalink
Fix bugs from double-entry mode and account spinners
Browse files Browse the repository at this point in the history
Fix: crash when saving transaction in double-entry mode with only one account in system
Fix: crash when editing account (default transfer account setting) with no other account in system
Fix broken CI build (update Android tools version in Travis config)
Fixes codinguser#473
  • Loading branch information
codinguser committed Feb 5, 2016
1 parent 8a61607 commit 0aef6f5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ android:
components:
- platform-tools
- tools
- build-tools-23.0.1
- build-tools-23.0.2

# The SDK version used to compile your project
- android-23
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Change Log
===============================================================================
Version 2.0.6 *(2016-02-29)*
Version 2.0.6 *(2016-02-20)*
----------------------------
* Fixed: Saving transaction gets slower with increase in size of database
* Fixed: Imbalance amount wrongly computed in split editor (for some accounts)
* Fixed: Amount text boxes in split editor sometimes do not get focus
* Fixed: Crash when saving account with no transfer account selected
* Fixed: Crash when creating a new transaction with no transfer account

Version 2.0.5 *(2015-12-12)*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,8 @@ private void saveAccount() {
}
mAccount.setParentUID(newParentAccountUID);

if (mDefaultTransferAccountCheckBox.isChecked()){
if (mDefaultTransferAccountCheckBox.isChecked()
&& mDefaulTransferAccountSpinner.getSelectedItemId() != Spinner.INVALID_ROW_ID){
long id = mDefaulTransferAccountSpinner.getSelectedItemId();
mAccount.setDefaultTransferAccountUID(mAccountsDbAdapter.getUID(id));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ private void saveNewTransaction() {

String transferAcctUID;
long transferAcctId = mTransferAccountSpinner.getSelectedItemId();
if (mUseDoubleEntry || transferAcctId < 0) {
if (mUseDoubleEntry && transferAcctId > 0) {
transferAcctUID = mAccountsDbAdapter.getUID(transferAcctId);
} else {
transferAcctUID = mAccountsDbAdapter.getOrCreateImbalanceAccountUID(currency);
Expand Down
2 changes: 1 addition & 1 deletion play_store_description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GnuCash is a mobile finance expense tracker application for Android.

It is a companion application for GnuCash for the desktop and enables flexible tracking of expenses on-the-go which can be exported to QIF or OFX formats.

Some of feature highligts include:
Some of feature highlights include:

<b>&bull; An easy-to-use interface.</b>

Expand Down

0 comments on commit 0aef6f5

Please sign in to comment.