mobile-ledger.git
3 years agoguard against a race condition when the transaction list is reduced while the scrolle...
Damyan Ivanov [Fri, 21 Dec 2018 20:29:14 +0000 (20:29 +0000)]
guard against a race condition when the transaction list is reduced while the scroller requests an item outside the range of the new list

3 years agosave a method call
Damyan Ivanov [Fri, 21 Dec 2018 20:28:53 +0000 (20:28 +0000)]
save a method call

3 years agotransaction load: replace the list atomically
Damyan Ivanov [Fri, 21 Dec 2018 20:23:20 +0000 (20:23 +0000)]
transaction load: replace the list atomically

otherwise it was emptied and filled up sequentially, while the scroller may
request an item at a position that is not yet loaded

3 years agoCardView!
Damyan Ivanov [Fri, 21 Dec 2018 20:22:58 +0000 (20:22 +0000)]
CardView!

3 years agounneeded id
Damyan Ivanov [Fri, 21 Dec 2018 20:21:02 +0000 (20:21 +0000)]
unneeded id

3 years agoextract a string into resource
Damyan Ivanov [Fri, 21 Dec 2018 20:20:51 +0000 (20:20 +0000)]
extract a string into resource

3 years agoleave progress bar there, just hidden
Damyan Ivanov [Fri, 21 Dec 2018 20:20:42 +0000 (20:20 +0000)]
leave progress bar there, just hidden

it is a bit ugly to let the scroller top jump around

3 years agofix the shadow under the last update row
Damyan Ivanov [Fri, 21 Dec 2018 20:15:10 +0000 (20:15 +0000)]
fix the shadow under the last update row

3 years agoadd another account row in the account list per transaction XML
Damyan Ivanov [Fri, 21 Dec 2018 19:40:12 +0000 (19:40 +0000)]
add another account row in the account list per transaction XML

3 years agoimplement parsing of account currency
Damyan Ivanov [Fri, 21 Dec 2018 19:39:56 +0000 (19:39 +0000)]
implement parsing of account currency

3 years agoborder under transaction header, other improvements. much better now
Damyan Ivanov [Fri, 21 Dec 2018 19:29:53 +0000 (19:29 +0000)]
border under transaction header, other improvements. much better now

3 years agolet the amount text view appear as wide as needed
Damyan Ivanov [Fri, 21 Dec 2018 19:28:22 +0000 (19:28 +0000)]
let the amount text view appear as wide as needed

3 years agono right padding of the transaction account amount
Damyan Ivanov [Fri, 21 Dec 2018 19:27:14 +0000 (19:27 +0000)]
no right padding of the transaction account amount

3 years agoseparate view for transaction date, bold description
Damyan Ivanov [Fri, 21 Dec 2018 18:50:44 +0000 (18:50 +0000)]
separate view for transaction date, bold description

3 years agofix scroll container height (was goung outside the screen); enable vartical scroll bar
Damyan Ivanov [Fri, 21 Dec 2018 18:50:16 +0000 (18:50 +0000)]
fix scroll container height (was goung outside the screen); enable vartical scroll bar

3 years agotransaction list: replace table layout with linear one
Damyan Ivanov [Fri, 21 Dec 2018 17:23:22 +0000 (17:23 +0000)]
transaction list: replace table layout with linear one

works faster, it seems, may be sped up more

3 years agocache short account names
Damyan Ivanov [Fri, 21 Dec 2018 17:04:39 +0000 (17:04 +0000)]
cache short account names

3 years agoreplace transaction accounts iterator with a getter
Damyan Ivanov [Fri, 21 Dec 2018 17:03:30 +0000 (17:03 +0000)]
replace transaction accounts iterator with a getter

3 years agosave a method call
Damyan Ivanov [Fri, 21 Dec 2018 17:00:13 +0000 (17:00 +0000)]
save a method call

3 years agostore table colors in a global glass
Damyan Ivanov [Fri, 21 Dec 2018 05:59:22 +0000 (05:59 +0000)]
store table colors in a global glass

updated by a custom application class upon configuration change

3 years agosome renames to better reflect the function
Damyan Ivanov [Thu, 20 Dec 2018 18:01:46 +0000 (18:01 +0000)]
some renames to better reflect the function

3 years agowhitespace
Damyan Ivanov [Thu, 20 Dec 2018 18:00:09 +0000 (18:00 +0000)]
whitespace

3 years agocorrectly update the transaction list update stamp
Damyan Ivanov [Thu, 20 Dec 2018 18:00:04 +0000 (18:00 +0000)]
correctly update the transaction list update stamp

3 years agomore straight-forward updating of the text representing the transaction list update...
Damyan Ivanov [Thu, 20 Dec 2018 17:59:51 +0000 (17:59 +0000)]
more straight-forward updating of the text representing the transaction list update stamp

3 years agoa constant for the transaction list stamp option
Damyan Ivanov [Thu, 20 Dec 2018 17:59:24 +0000 (17:59 +0000)]
a constant for the transaction list stamp option

3 years agoinformation about transaction id when having trouble parsing details
Damyan Ivanov [Thu, 20 Dec 2018 17:52:20 +0000 (17:52 +0000)]
information about transaction id when having trouble parsing details

3 years agowhitespace
Damyan Ivanov [Thu, 20 Dec 2018 17:52:10 +0000 (17:52 +0000)]
whitespace

3 years agodrop unused stuff related to partial transaction list parsing
Damyan Ivanov [Thu, 20 Dec 2018 17:51:51 +0000 (17:51 +0000)]
drop unused stuff related to partial transaction list parsing

3 years agoadd version suffix for the debug build
Damyan Ivanov [Thu, 20 Dec 2018 17:51:10 +0000 (17:51 +0000)]
add version suffix for the debug build

3 years agoprogressive update of transaction list in DB, stop after 100 matches
Damyan Ivanov [Wed, 19 Dec 2018 20:49:11 +0000 (20:49 +0000)]
progressive update of transaction list in DB, stop after 100 matches

in the hope that no one will edit transactions older than 100 entries

3 years agotransactions.id -> integer
Damyan Ivanov [Wed, 19 Dec 2018 20:48:48 +0000 (20:48 +0000)]
transactions.id -> integer

3 years agotransactions may come in random order from the backend
Damyan Ivanov [Wed, 19 Dec 2018 20:23:53 +0000 (20:23 +0000)]
transactions may come in random order from the backend

3 years agorefresh transaction list upon database update from the backend
Damyan Ivanov [Wed, 19 Dec 2018 20:22:41 +0000 (20:22 +0000)]
refresh transaction list upon database update from the backend

3 years agodrop shadow below the info about list freshness
Damyan Ivanov [Sun, 16 Dec 2018 18:01:34 +0000 (18:01 +0000)]
drop shadow below the info about list freshness

3 years agoopen SQLite db with write-ahead logging enabled
Damyan Ivanov [Sun, 16 Dec 2018 17:16:37 +0000 (17:16 +0000)]
open SQLite db with write-ahead logging enabled

this allows writers not to block readers

3 years agoreformat/rewrap
Damyan Ivanov [Sun, 16 Dec 2018 17:09:57 +0000 (17:09 +0000)]
reformat/rewrap

3 years agomove DB stuff into a static class
Damyan Ivanov [Sun, 16 Dec 2018 17:07:44 +0000 (17:07 +0000)]
move DB stuff into a static class

downside is that we need to pass a context around

3 years agocolor the swipe progress spinner in the accounts summary activity too
Damyan Ivanov [Sun, 16 Dec 2018 16:39:06 +0000 (16:39 +0000)]
color the swipe progress spinner in the accounts summary activity too

3 years agodebug--
Damyan Ivanov [Sun, 16 Dec 2018 13:12:53 +0000 (13:12 +0000)]
debug--

3 years agotransaction loading progress tweaks
Damyan Ivanov [Sun, 16 Dec 2018 13:12:40 +0000 (13:12 +0000)]
transaction loading progress tweaks

3 years agostop parser if the task is cancelled
Damyan Ivanov [Sun, 16 Dec 2018 13:12:17 +0000 (13:12 +0000)]
stop parser if the task is cancelled

3 years agoshort-skip lines starting with space when parsing
Damyan Ivanov [Sun, 16 Dec 2018 06:31:34 +0000 (06:31 +0000)]
short-skip lines starting with space when parsing

3 years agounused variable
Damyan Ivanov [Sun, 16 Dec 2018 06:25:41 +0000 (06:25 +0000)]
unused variable

3 years agoforgot to mark the data as loaded -- avoids re-loading it with each display
Damyan Ivanov [Sun, 16 Dec 2018 06:25:28 +0000 (06:25 +0000)]
forgot to mark the data as loaded -- avoids re-loading it with each display

3 years agoon-demand loading of transaction details
Damyan Ivanov [Sun, 16 Dec 2018 05:56:45 +0000 (05:56 +0000)]
on-demand loading of transaction details

speeds up the initial list display quite a bit

3 years agonoise
Damyan Ivanov [Sun, 16 Dec 2018 05:54:42 +0000 (05:54 +0000)]
noise

3 years agothemed color for the transaction list loading progress bar
Damyan Ivanov [Sat, 15 Dec 2018 19:38:44 +0000 (19:38 +0000)]
themed color for the transaction list loading progress bar

3 years agoshow accounts and amounts in the transaction list
Damyan Ivanov [Sat, 15 Dec 2018 19:38:02 +0000 (19:38 +0000)]
show accounts and amounts in the transaction list

still looks very ugly and needs further work

3 years agoalso empty transaction_amounts upon re-load
Damyan Ivanov [Sat, 15 Dec 2018 19:37:00 +0000 (19:37 +0000)]
also empty transaction_amounts upon re-load

the foreign key constraint is not declared as ON DELETE CASCADE :(

3 years agohelper method for getting transaction item (currency + amount) as string
Damyan Ivanov [Sat, 15 Dec 2018 19:36:27 +0000 (19:36 +0000)]
helper method for getting transaction item (currency + amount) as string

3 years agowhitespace
Damyan Ivanov [Sat, 15 Dec 2018 19:35:44 +0000 (19:35 +0000)]
whitespace

3 years agohelper method fot getting the short account name
Damyan Ivanov [Sat, 15 Dec 2018 19:35:33 +0000 (19:35 +0000)]
helper method fot getting the short account name

assets:cash:Peter becomes a:c:Peter

3 years agoTransactionListViewModel: also load transaction accounts
Damyan Ivanov [Sat, 15 Dec 2018 19:34:58 +0000 (19:34 +0000)]
TransactionListViewModel: also load transaction accounts

this becomes rather slow and needs to be reworked

only the list of transaction IDs needs to be loaded initially, and the
details and the accounts need to be loaded on demand, per row

3 years ago+debug
Damyan Ivanov [Sat, 15 Dec 2018 19:33:49 +0000 (19:33 +0000)]
+debug

3 years agoinstance-wide dbg
Damyan Ivanov [Sat, 15 Dec 2018 19:33:31 +0000 (19:33 +0000)]
instance-wide dbg

3 years agocorrectly get the last transaction list update option
Damyan Ivanov [Sat, 15 Dec 2018 19:33:13 +0000 (19:33 +0000)]
correctly get the last transaction list update option

the default needs to be written as 0L (long) so that the correct method is used

3 years agorefresh the view when the transaction list is updated
Damyan Ivanov [Sat, 15 Dec 2018 19:32:01 +0000 (19:32 +0000)]
refresh the view when the transaction list is updated

3 years agonicer swiper spinner colors for the transaction list
Damyan Ivanov [Sat, 15 Dec 2018 19:31:46 +0000 (19:31 +0000)]
nicer swiper spinner colors for the transaction list

3 years agonoise
Damyan Ivanov [Sat, 15 Dec 2018 13:38:45 +0000 (13:38 +0000)]
noise

3 years agotest for the digest utility module
Damyan Ivanov [Sat, 15 Dec 2018 13:38:40 +0000 (13:38 +0000)]
test for the digest utility module

3 years agoworking transaction list retrieval
Damyan Ivanov [Sat, 15 Dec 2018 13:38:27 +0000 (13:38 +0000)]
working transaction list retrieval

3 years agowhitespace
Damyan Ivanov [Sat, 15 Dec 2018 13:37:40 +0000 (13:37 +0000)]
whitespace

3 years agostart the Transaction list activity not really a thing yet
Damyan Ivanov [Fri, 14 Dec 2018 20:56:52 +0000 (20:56 +0000)]
start the Transaction list activity not really a thing yet

3 years agoseparate packages for the different aspects of the application
Damyan Ivanov [Fri, 14 Dec 2018 20:56:35 +0000 (20:56 +0000)]
separate packages for the different aspects of the application

3 years agomachinery for retrieving transaction journal from hledger-web
Damyan Ivanov [Fri, 14 Dec 2018 18:26:38 +0000 (18:26 +0000)]
machinery for retrieving transaction journal from hledger-web

3 years agoboilerplate typo
Damyan Ivanov [Fri, 14 Dec 2018 17:22:54 +0000 (17:22 +0000)]
boilerplate typo

3 years agoignore a settings file
Damyan Ivanov [Fri, 14 Dec 2018 17:18:58 +0000 (17:18 +0000)]
ignore a settings file

3 years agoLincese boilerplate for google-derived icons
Damyan Ivanov [Fri, 14 Dec 2018 17:17:52 +0000 (17:17 +0000)]
Lincese boilerplate for google-derived icons

3 years agoproper update of accounts in DB keeping existing settings
Damyan Ivanov [Fri, 14 Dec 2018 05:58:37 +0000 (05:58 +0000)]
proper update of accounts in DB keeping existing settings

insert or replace is more like insert or delete and insert which destroys
the hidden flag

3 years agoadd license boilerplates for authored content
Damyan Ivanov [Fri, 14 Dec 2018 05:58:28 +0000 (05:58 +0000)]
add license boilerplates for authored content

3 years agobetter account starr-ing control
Damyan Ivanov [Fri, 14 Dec 2018 05:58:00 +0000 (05:58 +0000)]
better account starr-ing control

3 years agohide new transaction fab on scroll
Damyan Ivanov [Thu, 13 Dec 2018 20:59:51 +0000 (20:59 +0000)]
hide new transaction fab on scroll

3 years agorewording and translations
Damyan Ivanov [Thu, 13 Dec 2018 20:54:37 +0000 (20:54 +0000)]
rewording and translations

3 years agoremoved unused stuff
Damyan Ivanov [Thu, 13 Dec 2018 20:44:26 +0000 (20:44 +0000)]
removed unused stuff

3 years agomajor rework of the async stuff, view model, pull-to-refresh account list
Damyan Ivanov [Thu, 13 Dec 2018 20:44:08 +0000 (20:44 +0000)]
major rework of the async stuff, view model, pull-to-refresh account list

3 years agomigrate to a proper db helper class, sub-classed from SQLiteOpenHelper
Damyan Ivanov [Thu, 13 Dec 2018 05:35:13 +0000 (05:35 +0000)]
migrate to a proper db helper class, sub-classed from SQLiteOpenHelper

a small step from the quest of migrating to a ViewModel architecture,
avoiding context leaks

3 years agoyay! locale-specific formatting groups
Damyan Ivanov [Tue, 11 Dec 2018 20:50:11 +0000 (20:50 +0000)]
yay! locale-specific formatting groups

3 years agohide accounts, shown when a global preference is checked
Damyan Ivanov [Mon, 10 Dec 2018 21:35:22 +0000 (21:35 +0000)]
hide accounts, shown when a global preference is checked

3 years agoaccount summary: account rows with minimum height of an action bar
Damyan Ivanov [Mon, 10 Dec 2018 20:20:00 +0000 (20:20 +0000)]
account summary: account rows with minimum height of an action bar

3 years agonew transaction: make text input fields single-line and use 'Next' action button
Damyan Ivanov [Sun, 9 Dec 2018 19:31:27 +0000 (19:31 +0000)]
new transaction: make text input fields single-line and use 'Next' action button

can't make it multi-line (for accounts with long names) and still
have 'Next' on the action button and not 'Enter'

3 years agosome code analysys noise
Damyan Ivanov [Sun, 9 Dec 2018 18:32:32 +0000 (18:32 +0000)]
some code analysys noise

3 years agolower minSdkVersion from 23 to 22
Damyan Ivanov [Sun, 9 Dec 2018 18:31:22 +0000 (18:31 +0000)]
lower minSdkVersion from 23 to 22

3 years agomore check for suitability of the transaction
Damyan Ivanov [Sun, 9 Dec 2018 17:54:28 +0000 (17:54 +0000)]
more check for suitability of the transaction

it seems hledger-web accepts everything and all the checks it has are
in the web front-end

3 years agofocus away when removing the row with the focus
Damyan Ivanov [Sun, 9 Dec 2018 17:52:32 +0000 (17:52 +0000)]
focus away when removing the row with the focus

3 years agotoggle_all_editting(): include the date and the description
Damyan Ivanov [Sun, 9 Dec 2018 17:13:00 +0000 (17:13 +0000)]
toggle_all_editting(): include the date and the description

3 years agofocus on the description if it is empty, when the activity is (re-)started
Damyan Ivanov [Sun, 9 Dec 2018 17:12:38 +0000 (17:12 +0000)]
focus on the description if it is empty, when the activity is (re-)started

3 years agocheck suitability for submission and recalculate default hanging amount when a row...
Damyan Ivanov [Sun, 9 Dec 2018 15:35:38 +0000 (15:35 +0000)]
check suitability for submission and recalculate default hanging amount when a row is removed

3 years agofix the forward navigation between elements in landscape mode also for the dynamicall...
Damyan Ivanov [Sun, 9 Dec 2018 15:34:52 +0000 (15:34 +0000)]
fix the forward navigation between elements in landscape mode also for the dynamically added/removed rows

3 years agoamount height should match the parent height
Damyan Ivanov [Sun, 9 Dec 2018 13:48:02 +0000 (13:48 +0000)]
amount height should match the parent height

causing the base line to go at the bottom of the account name is longer

3 years agoyet another attempt to fix the forward navigation between elements in landscape mode
Damyan Ivanov [Sun, 9 Dec 2018 13:47:15 +0000 (13:47 +0000)]
yet another attempt to fix the forward navigation between elements in landscape mode

seems to work for the initial entries

3 years agoreset_form: focus the description before removing extra rows potentially containing...
Damyan Ivanov [Sun, 9 Dec 2018 13:31:36 +0000 (13:31 +0000)]
reset_form: focus the description before removing extra rows potentially containing focused elements

3 years agoRevert "new transaction: remove the xml-driven rows and populate by hand"
Damyan Ivanov [Sun, 9 Dec 2018 13:14:03 +0000 (13:14 +0000)]
Revert "new transaction: remove the xml-driven rows and populate by hand"

This reverts commit 37d9d3d9d02714ba64414492beeffb22e2dea267.

3 years agomake the Reset transaction menu item menu-only
Damyan Ivanov [Sun, 9 Dec 2018 13:05:02 +0000 (13:05 +0000)]
make the Reset transaction menu item menu-only

letting it appear on the action bar is a bit confusing because it sits
right next to the Save item and it is too easy to click the wrong thing

3 years agoshorter account summary title
Damyan Ivanov [Sun, 9 Dec 2018 13:03:53 +0000 (13:03 +0000)]
shorter account summary title

3 years agonew transction/submit: when no date is entered, use today
Damyan Ivanov [Sun, 9 Dec 2018 12:58:54 +0000 (12:58 +0000)]
new transction/submit: when no date is entered, use today

3 years agocheck submit suitability upon changes in the description
Damyan Ivanov [Sun, 9 Dec 2018 12:57:43 +0000 (12:57 +0000)]
check submit suitability upon changes in the description

now that the description is mandatory

3 years agonew transaction: new menu item for resetting the activity
Damyan Ivanov [Sun, 9 Dec 2018 12:56:51 +0000 (12:56 +0000)]
new transaction: new menu item for resetting the activity

3 years agoextend the transaction suitability checks
Damyan Ivanov [Sun, 9 Dec 2018 12:55:03 +0000 (12:55 +0000)]
extend the transaction suitability checks

3 years agonew transaction: remove the xml-driven rows and populate by hand
Damyan Ivanov [Sun, 9 Dec 2018 12:52:32 +0000 (12:52 +0000)]
new transaction: remove the xml-driven rows and populate by hand

the by-hand method is used on demand anyway and should work and set all
the propertied of the rows/fields

the xml-driven stuff is still useful during development for figuring out
what is the purpose of each property

3 years agopop-up the date picked dialog as soon as the date field receives focus
Damyan Ivanov [Sun, 9 Dec 2018 12:47:39 +0000 (12:47 +0000)]
pop-up the date picked dialog as soon as the date field receives focus