]> git.ktnx.net Git - mobile-ledger.git/log
mobile-ledger.git
5 years agoTransactionListViewModel is static
Damyan Ivanov [Sat, 5 Jan 2019 08:26:37 +0000 (08:26 +0000)]
TransactionListViewModel is static

5 years agoasync account list
Damyan Ivanov [Sat, 5 Jan 2019 08:26:15 +0000 (08:26 +0000)]
async account list

5 years agoobserve background task count in the UI fragments
Damyan Ivanov [Sat, 5 Jan 2019 08:02:21 +0000 (08:02 +0000)]
observe background task count in the UI fragments

5 years agoMLDB: store the application instance in the context variable
Damyan Ivanov [Sat, 5 Jan 2019 07:59:32 +0000 (07:59 +0000)]
MLDB: store the application instance in the context variable

avoids a warning about storing activity/fragment instances in static variables,
which may lead to leaks

5 years agostop closing acuired db handles and leave that for the application termination
Damyan Ivanov [Sat, 5 Jan 2019 07:58:34 +0000 (07:58 +0000)]
stop closing acuired db handles and leave that for the application termination

these aren't reference-counted and can be destroyed by one thread while
another still uses them

5 years agoincrement background task count while retrieving accounts too
Damyan Ivanov [Sat, 5 Jan 2019 07:52:19 +0000 (07:52 +0000)]
increment background task count while retrieving accounts too

5 years agopad last update label from the left
Damyan Ivanov [Fri, 4 Jan 2019 18:05:14 +0000 (18:05 +0000)]
pad last update label from the left

5 years agoanother major rework, transaction list is fully asynchronous
Damyan Ivanov [Fri, 4 Jan 2019 17:56:37 +0000 (17:56 +0000)]
another major rework, transaction list is fully asynchronous

5 years agowhitespace
Damyan Ivanov [Wed, 2 Jan 2019 20:45:10 +0000 (20:45 +0000)]
whitespace

5 years agohandle cancellation
Damyan Ivanov [Wed, 2 Jan 2019 20:45:07 +0000 (20:45 +0000)]
handle cancellation

5 years agouse enum for the parser state
Damyan Ivanov [Wed, 2 Jan 2019 20:44:51 +0000 (20:44 +0000)]
use enum for the parser state

5 years agouse a constant for the last refresh stamp option
Damyan Ivanov [Wed, 2 Jan 2019 20:44:30 +0000 (20:44 +0000)]
use a constant for the last refresh stamp option

5 years agofu no context for getWritableDatabase
Damyan Ivanov [Wed, 2 Jan 2019 20:44:03 +0000 (20:44 +0000)]
fu no context for getWritableDatabase

5 years agomove last update and progress bar from transaction list fragment to the main activity
Damyan Ivanov [Wed, 2 Jan 2019 20:35:23 +0000 (20:35 +0000)]
move last update and progress bar from transaction list fragment to the main activity

5 years agoremove context parameter from MLDB.getWritableDB
Damyan Ivanov [Wed, 2 Jan 2019 20:33:12 +0000 (20:33 +0000)]
remove context parameter from MLDB.getWritableDB

5 years agoset title when fragment is changed
Damyan Ivanov [Mon, 31 Dec 2018 19:20:21 +0000 (19:20 +0000)]
set title when fragment is changed

5 years agostreamlined database utility, fed with the application context upon startup
Damyan Ivanov [Mon, 31 Dec 2018 19:17:44 +0000 (19:17 +0000)]
streamlined database utility, fed with the application context upon startup

5 years agotranslation
Damyan Ivanov [Mon, 31 Dec 2018 19:12:46 +0000 (19:12 +0000)]
translation

5 years agounused string
Damyan Ivanov [Mon, 31 Dec 2018 19:12:44 +0000 (19:12 +0000)]
unused string

5 years agolabel → icon for the account name filter pane
Damyan Ivanov [Mon, 31 Dec 2018 19:12:41 +0000 (19:12 +0000)]
label → icon for the account name filter pane

5 years agowhitespace
Damyan Ivanov [Mon, 31 Dec 2018 19:07:32 +0000 (19:07 +0000)]
whitespace

5 years agoslight speed up on re-coloring inactive drawer items
Damyan Ivanov [Mon, 31 Dec 2018 19:07:21 +0000 (19:07 +0000)]
slight speed up on re-coloring inactive drawer items

5 years agofix current fragment indicator in the drawer after returning from the new transaction...
Damyan Ivanov [Mon, 31 Dec 2018 19:07:12 +0000 (19:07 +0000)]
fix current fragment indicator in the drawer after returning from the new transaction activity

5 years agoshow new transaction fab when fragment is changed
Damyan Ivanov [Mon, 31 Dec 2018 19:05:18 +0000 (19:05 +0000)]
show new transaction fab when fragment is changed

5 years agoshow/hide new transaction fab when transaction list is scrolled too
Damyan Ivanov [Mon, 31 Dec 2018 19:05:11 +0000 (19:05 +0000)]
show/hide new transaction fab when transaction list is scrolled too

5 years agogo to transactions for the account when an account is clicked in the account summary
Damyan Ivanov [Mon, 31 Dec 2018 19:00:20 +0000 (19:00 +0000)]
go to transactions for the account when an account is clicked in the account summary

5 years agomore violet color
Damyan Ivanov [Mon, 31 Dec 2018 17:41:27 +0000 (17:41 +0000)]
more violet color

5 years agorework drawer to be below the tool bar
Damyan Ivanov [Mon, 31 Dec 2018 17:41:20 +0000 (17:41 +0000)]
rework drawer to be below the tool bar

5 years agomore main activity rename, cleanup of unused stuff
Damyan Ivanov [Mon, 31 Dec 2018 05:35:23 +0000 (05:35 +0000)]
more main activity rename, cleanup of unused stuff

5 years agomajor refactor, make account summary and transaction list fragments, part of the...
Damyan Ivanov [Mon, 31 Dec 2018 05:31:57 +0000 (05:31 +0000)]
major refactor, make account summary and transaction list fragments, part of the "Main" activity

5 years agoredundant namespace
Damyan Ivanov [Sun, 30 Dec 2018 11:55:29 +0000 (11:55 +0000)]
redundant namespace

5 years agoadd transaction filter
Damyan Ivanov [Sun, 30 Dec 2018 11:50:44 +0000 (11:50 +0000)]
add transaction filter

5 years agofix check for non-zero running total
Damyan Ivanov [Sat, 29 Dec 2018 08:22:37 +0000 (08:22 +0000)]
fix check for non-zero running total

didn't work when the running total is negative

5 years agomove hook_autocompletion_adapter to MLDB
Damyan Ivanov [Sat, 22 Dec 2018 11:24:39 +0000 (11:24 +0000)]
move hook_autocompletion_adapter to MLDB

will be used in other places too

5 years agocorrect height
Damyan Ivanov [Sat, 22 Dec 2018 11:16:10 +0000 (11:16 +0000)]
correct height

5 years agoMLDB: always use the application context
Damyan Ivanov [Sat, 22 Dec 2018 08:12:09 +0000 (08:12 +0000)]
MLDB: always use the application context

kind of global singleton thing

5 years agoload transaction list from DB upon activity start
Damyan Ivanov [Sat, 22 Dec 2018 08:02:25 +0000 (08:02 +0000)]
load transaction list from DB upon activity start

5 years agocancelable transaction refresh
Damyan Ivanov [Sat, 22 Dec 2018 08:02:02 +0000 (08:02 +0000)]
cancelable transaction refresh

5 years agofu: single transaction list
Damyan Ivanov [Sat, 22 Dec 2018 07:59:54 +0000 (07:59 +0000)]
fu: single transaction list

5 years agoblack clear icon from Google
Damyan Ivanov [Sat, 22 Dec 2018 07:31:05 +0000 (07:31 +0000)]
black clear icon from Google

5 years agoput a 30 seconds timeout on network operations
Damyan Ivanov [Sat, 22 Dec 2018 07:29:33 +0000 (07:29 +0000)]
put a 30 seconds timeout on network operations

5 years agolet the model hold the (single) transaction list
Damyan Ivanov [Sat, 22 Dec 2018 07:29:18 +0000 (07:29 +0000)]
let the model hold the (single) transaction list

all access to the list goes via the model
transaction list is loaded upon activity launch if it was never downloaded

before there were two copies of the list that were out of sync

5 years agonoice
Damyan Ivanov [Sat, 22 Dec 2018 07:26:12 +0000 (07:26 +0000)]
noice

5 years agouse full account names in the transaction list
Damyan Ivanov [Fri, 21 Dec 2018 20:47:54 +0000 (20:47 +0000)]
use full account names in the transaction list

there is enough space

5 years agomake "manually" added account rows look the same as those coming from the layout
Damyan Ivanov [Fri, 21 Dec 2018 20:47:10 +0000 (20:47 +0000)]
make "manually" added account rows look the same as those coming from the layout

bottom padding was the difference, The TextView → AppCompatTextView is
just in case

5 years agoembed progress bar in the last update row
Damyan Ivanov [Fri, 21 Dec 2018 20:33:32 +0000 (20:33 +0000)]
embed progress bar in the last update row

5 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

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

5 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

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

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

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

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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

5 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

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

5 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

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

5 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

5 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

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

5 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

5 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

5 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

5 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

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

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

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

5 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

5 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

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

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

5 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

5 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

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

5 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

5 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

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

5 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

5 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

5 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 :(

5 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

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

5 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

5 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

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