]> git.ktnx.net Git - mobile-ledger.git/log
mobile-ledger.git
5 years agowhitespace
Damyan Ivanov [Mon, 25 Mar 2019 22:56:49 +0000 (00:56 +0200)]
whitespace

5 years agosingle SQL file for initial db creation
Damyan Ivanov [Mon, 25 Mar 2019 22:56:43 +0000 (00:56 +0200)]
single SQL file for initial db creation

applying 20 incremental revisions appears a bit too much

5 years agothese constants may be private
Damyan Ivanov [Mon, 25 Mar 2019 20:17:24 +0000 (22:17 +0200)]
these constants may be private

5 years agopackage private constructor is enough
Damyan Ivanov [Mon, 25 Mar 2019 20:17:10 +0000 (22:17 +0200)]
package private constructor is enough

5 years agodeclare LockHolder as implementing AutoClosable (instead of Closable)
Damyan Ivanov [Mon, 25 Mar 2019 20:16:07 +0000 (22:16 +0200)]
declare LockHolder as implementing AutoClosable (instead of Closable)

5 years agofix annotations to match super methods
Damyan Ivanov [Mon, 25 Mar 2019 20:07:34 +0000 (22:07 +0200)]
fix annotations to match super methods

5 years agodrop 'synchronized' modifier for getDatabase
Damyan Ivanov [Sun, 24 Mar 2019 17:11:48 +0000 (19:11 +0200)]
drop 'synchronized' modifier for getDatabase

it was necessary to guarantee that no two connections were created because
the connection is created in getDatabase

by moving the connection creatin to the init() a high profile method
(getDatabase) gets faster. init() is called only once anyway

5 years agolocks around observable list's access
Damyan Ivanov [Sun, 24 Mar 2019 17:09:41 +0000 (19:09 +0200)]
locks around observable list's access

to help guarantee that the list is not modified by another thread while
traversing

5 years agono direct interface to ObservableList's value
Damyan Ivanov [Sun, 24 Mar 2019 16:08:13 +0000 (18:08 +0200)]
no direct interface to ObservableList's value

5 years agoColors: treat 360 same as 0
Damyan Ivanov [Sun, 24 Mar 2019 09:47:42 +0000 (11:47 +0200)]
Colors: treat 360 same as 0

5 years agoaccount list: queue db updates when an account is expanded/collapsed
Damyan Ivanov [Sun, 24 Mar 2019 09:47:17 +0000 (11:47 +0200)]
account list: queue db updates when an account is expanded/collapsed

avoids a possible huge delay in UI if the account list is being updated

5 years agobeginTransaction should be outside the try{} block
Damyan Ivanov [Sun, 24 Mar 2019 09:41:27 +0000 (11:41 +0200)]
beginTransaction should be outside the try{} block

5 years agoLedgerAccount: override hashCode() and equals() to enable proper location in collections
Damyan Ivanov [Sun, 24 Mar 2019 09:40:56 +0000 (11:40 +0200)]
LedgerAccount: override hashCode() and equals() to enable proper location in collections

5 years agocommit right after the account list is complete
Damyan Ivanov [Sun, 24 Mar 2019 09:39:58 +0000 (11:39 +0200)]
commit right after the account list is complete

the transaction list can be updated in its own transaction

shorter transactions - happier database

5 years agoasync database statement queue
Damyan Ivanov [Sun, 24 Mar 2019 09:32:54 +0000 (11:32 +0200)]
async database statement queue

the idea is to take quick database updates outside the main (UI) thread

this helps when the database is in a transaction updating accounts or
transactions which can take considerable time

5 years agoremove the distinction between "readable" and "writable" database connections
Damyan Ivanov [Sun, 24 Mar 2019 09:29:12 +0000 (11:29 +0200)]
remove the distinction between "readable" and "writable" database connections

it is artificial and serves no useful purpose

5 years agoremove the "Cancel" button from the hue selection dialog
Damyan Ivanov [Sun, 24 Mar 2019 09:12:22 +0000 (11:12 +0200)]
remove the "Cancel" button from the hue selection dialog

it is a common feature to cancel the dialog by tapping outside and
the button only takes valuable space

5 years agoic_app_icon.png → app_icon.png in drawable-*
Damyan Ivanov [Mon, 18 Mar 2019 11:27:01 +0000 (13:27 +0200)]
ic_app_icon.png → app_icon.png in drawable-*

see 58b61ea2f6af43ca23c153af8f33e9569d31dc00

5 years agofix method chain
Damyan Ivanov [Mon, 18 Mar 2019 09:31:01 +0000 (11:31 +0200)]
fix method chain

5 years agowhitespace
Damyan Ivanov [Mon, 18 Mar 2019 09:27:56 +0000 (11:27 +0200)]
whitespace

5 years agoremove all profile data when removing a profile
Damyan Ivanov [Mon, 18 Mar 2019 09:26:49 +0000 (11:26 +0200)]
remove all profile data when removing a profile

5 years agofill hasSubAccounts when populating account list on refresh
Damyan Ivanov [Mon, 18 Mar 2019 09:23:32 +0000 (11:23 +0200)]
fill hasSubAccounts when populating account list on refresh

5 years agorefresh profile list when the backend data changes
Damyan Ivanov [Mon, 18 Mar 2019 09:22:07 +0000 (11:22 +0200)]
refresh profile list when the backend data changes

5 years agowhitespace
Damyan Ivanov [Mon, 18 Mar 2019 09:15:31 +0000 (11:15 +0200)]
whitespace

5 years agobump target SQL revision number
Damyan Ivanov [Mon, 18 Mar 2019 09:14:45 +0000 (11:14 +0200)]
bump target SQL revision number

5 years agoprepareConnection: avoid double slashes when constructing connection URL
Damyan Ivanov [Mon, 18 Mar 2019 09:14:25 +0000 (11:14 +0200)]
prepareConnection: avoid double slashes when constructing connection URL

5 years agoremove all data belonging to previously deleted accounts
Damyan Ivanov [Mon, 18 Mar 2019 09:12:36 +0000 (11:12 +0200)]
remove all data belonging to previously deleted accounts

5 years agobump version code/name
Damyan Ivanov [Mon, 18 Mar 2019 09:01:23 +0000 (11:01 +0200)]
bump version code/name

5 years agoprepareConnection: append '/' to the backend URL only if it not already there
Damyan Ivanov [Mon, 18 Mar 2019 06:03:28 +0000 (08:03 +0200)]
prepareConnection: append '/' to the backend URL only if it not already there

avoids URLs like http://server//accounts, which lead to redirects, which
(1) are superflous and (2) MoLe can't handle yet

5 years agoupdate changelog v0.8
Damyan Ivanov [Fri, 15 Mar 2019 04:31:35 +0000 (06:31 +0200)]
update changelog

5 years agoadd changelog for version code 18
Damyan Ivanov [Fri, 15 Mar 2019 04:29:48 +0000 (06:29 +0200)]
add changelog for version code 18

5 years agoupdate full description to match current state
Damyan Ivanov [Fri, 15 Mar 2019 04:29:33 +0000 (06:29 +0200)]
update full description to match current state

5 years agoensure account amount is wide enough to tap on
Damyan Ivanov [Fri, 15 Mar 2019 04:03:22 +0000 (06:03 +0200)]
ensure account amount is wide enough to tap on

5 years agoaccount tree: expand/collapse via account name too, account transactions still availa...
Damyan Ivanov [Fri, 15 Mar 2019 04:01:26 +0000 (06:01 +0200)]
account tree: expand/collapse via account name too, account transactions still available when tapping on amounts

5 years agoadd feature graphic
Damyan Ivanov [Sun, 17 Mar 2019 16:53:42 +0000 (16:53 +0000)]
add feature graphic

5 years agomove phoneScreenshots under images/
Damyan Ivanov [Fri, 15 Mar 2019 01:48:02 +0000 (03:48 +0200)]
move phoneScreenshots under images/

5 years agofix crash when saving profile without bringing up the color selector
Damyan Ivanov [Fri, 15 Mar 2019 01:12:45 +0000 (03:12 +0200)]
fix crash when saving profile without bringing up the color selector

5 years agoadd some screenshots
Damyan Ivanov [Fri, 15 Mar 2019 01:12:17 +0000 (03:12 +0200)]
add some screenshots

5 years agoturn on case-sensitive LIKE operator, globally
Damyan Ivanov [Thu, 14 Mar 2019 21:27:00 +0000 (23:27 +0200)]
turn on case-sensitive LIKE operator, globally

5 years agofix populating live account list when updating from JSON
Damyan Ivanov [Thu, 14 Mar 2019 21:26:41 +0000 (23:26 +0200)]
fix populating live account list when updating from JSON

5 years agooptimise app icons png
Damyan Ivanov [Sun, 17 Mar 2019 16:45:18 +0000 (16:45 +0000)]
optimise app icons png

5 years agoadd banner SVG
Damyan Ivanov [Sun, 17 Mar 2019 16:43:04 +0000 (16:43 +0000)]
add banner SVG

5 years agoreset rotation angle before animating rotation
Damyan Ivanov [Thu, 14 Mar 2019 20:52:44 +0000 (22:52 +0200)]
reset rotation angle before animating rotation

5 years agofix wrong showing of sub-accounts of collapsed accounts upon refresh
Damyan Ivanov [Thu, 14 Mar 2019 20:43:04 +0000 (22:43 +0200)]
fix wrong showing of sub-accounts of collapsed accounts upon refresh

5 years agofix duplication af account amounts on refresh
Damyan Ivanov [Thu, 14 Mar 2019 20:05:50 +0000 (22:05 +0200)]
fix duplication af account amounts on refresh

5 years agoput account expansion bracket after the name, fix rotation animation
Damyan Ivanov [Thu, 14 Mar 2019 20:05:02 +0000 (22:05 +0200)]
put account expansion bracket after the name, fix rotation animation

5 years agobetter error message on network errors
Damyan Ivanov [Tue, 12 Mar 2019 20:26:33 +0000 (22:26 +0200)]
better error message on network errors

5 years agofix refreshing the display of the last update stamp
Damyan Ivanov [Tue, 12 Mar 2019 20:11:12 +0000 (22:11 +0200)]
fix refreshing the display of the last update stamp

5 years agomove setupProfile from onCreate to onStart
Damyan Ivanov [Tue, 12 Mar 2019 20:08:14 +0000 (22:08 +0200)]
move setupProfile from onCreate to onStart

it needs toe activity to be filly up

5 years agocall setupProfile in onCreate, not in onResume
Damyan Ivanov [Mon, 11 Mar 2019 18:32:07 +0000 (20:32 +0200)]
call setupProfile in onCreate, not in onResume

onResume is also called when the app is brought to the front and there is no
need to refresh profile data at this time

5 years agospurious setting
Damyan Ivanov [Mon, 11 Mar 2019 18:30:51 +0000 (20:30 +0200)]
spurious setting

no need, if there is a change, the next line will make it visible via the
observable value

5 years agofix progress in new JSON parsing code
Damyan Ivanov [Thu, 7 Mar 2019 05:58:52 +0000 (07:58 +0200)]
fix progress in new JSON parsing code

5 years agohttp error handling in legacy parsing code
Damyan Ivanov [Thu, 7 Mar 2019 05:54:36 +0000 (07:54 +0200)]
http error handling in legacy parsing code

5 years agofallback to legacy HTML parsing
Damyan Ivanov [Thu, 7 Mar 2019 05:50:17 +0000 (07:50 +0200)]
fallback to legacy HTML parsing

5 years agofallback to legacy HTML parsing
Damyan Ivanov [Thu, 7 Mar 2019 05:50:17 +0000 (07:50 +0200)]
fallback to legacy HTML parsing

5 years agomore debug (disabled)
Damyan Ivanov [Thu, 7 Mar 2019 05:00:33 +0000 (07:00 +0200)]
more debug (disabled)

5 years agoset keep=1 when inserting new accounts
Damyan Ivanov [Thu, 7 Mar 2019 04:59:31 +0000 (06:59 +0200)]
set keep=1 when inserting new accounts

5 years agotry{} needs to be immediately after incrementing the background task count
Damyan Ivanov [Thu, 7 Mar 2019 04:58:43 +0000 (06:58 +0200)]
try{} needs to be immediately after incrementing the background task count

5 years agowhitespace
Damyan Ivanov [Thu, 7 Mar 2019 04:58:05 +0000 (06:58 +0200)]
whitespace

5 years agoProfile/storeAccount[Value],storeTransaction: get the db as an argument
Damyan Ivanov [Thu, 7 Mar 2019 04:57:53 +0000 (06:57 +0200)]
Profile/storeAccount[Value],storeTransaction: get the db as an argument

the calling code uses transactions, so it would be nice to use them

5 years agoshow account list scroll bar
Damyan Ivanov [Thu, 7 Mar 2019 04:21:43 +0000 (06:21 +0200)]
show account list scroll bar

5 years agowhile parsing JSON accounts, skip the "root" account
Damyan Ivanov [Thu, 7 Mar 2019 04:14:51 +0000 (06:14 +0200)]
while parsing JSON accounts, skip the "root" account

5 years agoupdate the in-memory account list after parsing the JSON account list
Damyan Ivanov [Thu, 7 Mar 2019 04:14:16 +0000 (06:14 +0200)]
update the in-memory account list after parsing the JSON account list

similar to what the legacy code does already

5 years agohandle async cancellation in JSON parsing code
Damyan Ivanov [Thu, 7 Mar 2019 03:56:50 +0000 (05:56 +0200)]
handle async cancellation in JSON parsing code

5 years agoset last profile update date in JSON retrieval code
Damyan Ivanov [Thu, 7 Mar 2019 03:52:31 +0000 (05:52 +0200)]
set last profile update date in JSON retrieval code

5 years agocentral method for setting the last profile update date
Damyan Ivanov [Thu, 7 Mar 2019 03:52:02 +0000 (05:52 +0200)]
central method for setting the last profile update date

5 years agopreliminary implementation for retrieval of transactions/accounts using the JSON API
Damyan Ivanov [Thu, 7 Mar 2019 03:38:24 +0000 (05:38 +0200)]
preliminary implementation for retrieval of transactions/accounts using the JSON API

5 years agoparser method for ISO date format (yyyy-mm-dd)
Damyan Ivanov [Thu, 7 Mar 2019 03:37:12 +0000 (05:37 +0200)]
parser method for ISO date format (yyyy-mm-dd)

5 years agoparsers for account and transaction lists (hledger-web JSON API)
Damyan Ivanov [Thu, 7 Mar 2019 03:36:36 +0000 (05:36 +0200)]
parsers for account and transaction lists (hledger-web JSON API)

5 years agobump version to 0.8 (18)
Damyan Ivanov [Thu, 7 Mar 2019 03:28:18 +0000 (05:28 +0200)]
bump version to 0.8 (18)

5 years agoparseLedgerDate: more info on parse error
Damyan Ivanov [Thu, 7 Mar 2019 03:25:06 +0000 (05:25 +0200)]
parseLedgerDate: more info on parse error

5 years agocentral methods for marking accounts and transaction as obsolete, active
Damyan Ivanov [Thu, 7 Mar 2019 03:21:33 +0000 (05:21 +0200)]
central methods for marking accounts and transaction as obsolete, active

as well as deleting the stale records

5 years agoadd jackson JSON processing library
Damyan Ivanov [Wed, 6 Mar 2019 15:49:10 +0000 (17:49 +0200)]
add jackson JSON processing library

5 years agoadd version/API level info to the crash report
Damyan Ivanov [Wed, 6 Mar 2019 15:18:55 +0000 (17:18 +0200)]
add version/API level info to the crash report

5 years agoincrement the background task counter immediately before starting the task
Damyan Ivanov [Tue, 5 Mar 2019 19:18:39 +0000 (21:18 +0200)]
increment the background task counter immediately before starting the task

so that the try/finally construct guarantees the correct counting

5 years agomove reloading of transaction list in the postExecute method
Damyan Ivanov [Tue, 5 Mar 2019 19:17:50 +0000 (21:17 +0200)]
move reloading of transaction list in the postExecute method

seems more logical, when one thread finishes and signals that to the main
thread, the new task is started

5 years agotranslations v0.7
Damyan Ivanov [Sun, 3 Mar 2019 17:06:52 +0000 (19:06 +0200)]
translations

5 years agoupdate copyright years
Damyan Ivanov [Sun, 3 Mar 2019 16:02:45 +0000 (18:02 +0200)]
update copyright years

5 years agoadd changelog files for version 16 and 17
Damyan Ivanov [Sun, 3 Mar 2019 16:01:28 +0000 (18:01 +0200)]
add changelog files for version 16 and 17

5 years agomore unused files
Damyan Ivanov [Sun, 3 Mar 2019 15:53:37 +0000 (17:53 +0200)]
more unused files

5 years agoremove unused files
Damyan Ivanov [Sun, 3 Mar 2019 15:52:06 +0000 (17:52 +0200)]
remove unused files

5 years agorename app icon files to take them out of the apache-licensed template
Damyan Ivanov [Sun, 3 Mar 2019 15:46:48 +0000 (17:46 +0200)]
rename app icon files to take them out of the apache-licensed template

5 years agoupdate copyright notices
Damyan Ivanov [Sun, 3 Mar 2019 15:43:15 +0000 (17:43 +0200)]
update copyright notices

5 years agoadd README.md describing licensing
Damyan Ivanov [Sun, 3 Mar 2019 15:33:21 +0000 (17:33 +0200)]
add README.md describing licensing

5 years agoadd a copy of the Apache 2.0 license text
Damyan Ivanov [Sun, 3 Mar 2019 15:30:06 +0000 (17:30 +0200)]
add a copy of the Apache 2.0 license text

5 years agoadd GPL-3 text (as COPYING.txt)
Damyan Ivanov [Sun, 3 Mar 2019 15:25:23 +0000 (17:25 +0200)]
add GPL-3 text (as COPYING.txt)

5 years agoupdate CHANGES
Damyan Ivanov [Sun, 3 Mar 2019 15:16:15 +0000 (17:16 +0200)]
update CHANGES

5 years agohide the 'Reports' item in the navigation
Damyan Ivanov [Sun, 3 Mar 2019 15:07:47 +0000 (17:07 +0200)]
hide the 'Reports' item in the navigation

still not ready, no need to tease users

5 years agoensure the profile list is always fully visible, without in-list scrolling
Damyan Ivanov [Sun, 3 Mar 2019 15:05:20 +0000 (17:05 +0200)]
ensure the profile list is always fully visible, without in-list scrolling

this is an abuse of the recycler view, which is designed to show only a
suitable subset of the list, but (1) nested scrolling is ugly, and worse
in landscape, and (2) we aren't supposed to have thousands of profiles

5 years agowhitespace
Damyan Ivanov [Sun, 3 Mar 2019 15:03:44 +0000 (17:03 +0200)]
whitespace

5 years agoblack -> ?colorAccent
Damyan Ivanov [Sun, 3 Mar 2019 14:38:38 +0000 (16:38 +0200)]
black -> ?colorAccent

5 years agowide touch area for the profile list head gear icon
Damyan Ivanov [Sun, 3 Mar 2019 14:38:29 +0000 (16:38 +0200)]
wide touch area for the profile list head gear icon

5 years agoavoid NPE in the inlikely event of no current profile
Damyan Ivanov [Sun, 3 Mar 2019 14:25:45 +0000 (16:25 +0200)]
avoid NPE in the inlikely event of no current profile

5 years agodo not dim non-current profiles
Damyan Ivanov [Sun, 3 Mar 2019 14:25:22 +0000 (16:25 +0200)]
do not dim non-current profiles

the current one is already accented with a background

5 years agowider touch area for rearranging profiles
Damyan Ivanov [Sun, 3 Mar 2019 14:23:44 +0000 (16:23 +0200)]
wider touch area for rearranging profiles

thara was a tiny bit that scrolled the list between the handle and the color tag

5 years agomake the profile details activity use the theme of the profile
Damyan Ivanov [Sun, 3 Mar 2019 09:29:38 +0000 (11:29 +0200)]
make the profile details activity use the theme of the profile

5 years agosetupTheme routine with a profile argument
Damyan Ivanov [Sun, 3 Mar 2019 09:28:25 +0000 (11:28 +0200)]
setupTheme routine with a profile argument

5 years agoHueRing: allow selecting the default hue which is not divisable by 15
Damyan Ivanov [Sun, 3 Mar 2019 09:27:23 +0000 (11:27 +0200)]
HueRing: allow selecting the default hue which is not divisable by 15

5 years agouse the hue selector for profile color management
Damyan Ivanov [Sun, 3 Mar 2019 08:04:52 +0000 (10:04 +0200)]
use the hue selector for profile color management

5 years agohue selection dialog buttons: OK -> Select
Damyan Ivanov [Sun, 3 Mar 2019 08:04:03 +0000 (10:04 +0200)]
hue selection dialog buttons: OK -> Select