mobile-ledger.git
2 years agouse date formatted that hopefully uses the system locale properly
Damyan Ivanov [Fri, 11 Jan 2019 19:48:40 +0000 (19:48 +0000)]
use date formatted that hopefully uses the system locale properly

2 years agoone more lambda
Damyan Ivanov [Fri, 11 Jan 2019 19:30:10 +0000 (19:30 +0000)]
one more lambda

2 years agofix profile selection mess when the radio buttons are used
Damyan Ivanov [Fri, 11 Jan 2019 19:28:00 +0000 (19:28 +0000)]
fix profile selection mess when the radio buttons are used

also maybe fix a leak of handlers created on each bind

2 years agofix refresh mangling with account "starred" status
Damyan Ivanov [Thu, 10 Jan 2019 21:46:11 +0000 (21:46 +0000)]
fix refresh mangling with account "starred" status

2 years agofix debug when starring/un-starring accounts
Damyan Ivanov [Thu, 10 Jan 2019 21:37:48 +0000 (21:37 +0000)]
fix debug when starring/un-starring accounts

2 years agofix traversing children when starring/un-starring accounts
Damyan Ivanov [Thu, 10 Jan 2019 21:37:23 +0000 (21:37 +0000)]
fix traversing children when starring/un-starring accounts

2 years agomultiple profile list fixes
Damyan Ivanov [Thu, 10 Jan 2019 21:28:06 +0000 (21:28 +0000)]
multiple profile list fixes

show fab upon activity start (for example after editing/deleting a profile)

fix the flow of events when the current profile is changed or deleted

2 years agoData: single central method for changing the current profile
Damyan Ivanov [Thu, 10 Jan 2019 21:27:41 +0000 (21:27 +0000)]
Data: single central method for changing the current profile

sets the option in the DB and Data.profile

2 years agoduplicate id
Damyan Ivanov [Thu, 10 Jan 2019 21:26:02 +0000 (21:26 +0000)]
duplicate id

2 years agoprofile list: show/hide fab on scroll/fling
Damyan Ivanov [Thu, 10 Jan 2019 21:25:52 +0000 (21:25 +0000)]
profile list: show/hide fab on scroll/fling

2 years agoa couple of lambdas
Damyan Ivanov [Thu, 10 Jan 2019 20:07:50 +0000 (20:07 +0000)]
a couple of lambdas

2 years agoprofile list: larger profile names, add URL sub-head style
Damyan Ivanov [Thu, 10 Jan 2019 19:47:15 +0000 (19:47 +0000)]
profile list: larger profile names, add URL sub-head style

2 years agoprofile list: add divider decoration
Damyan Ivanov [Thu, 10 Jan 2019 19:46:59 +0000 (19:46 +0000)]
profile list: add divider decoration

2 years agodelete profile menu as action; hide when only one profile or when a new profile is...
Damyan Ivanov [Thu, 10 Jan 2019 17:38:19 +0000 (17:38 +0000)]
delete profile menu as action; hide when only one profile or when a new profile is edited

2 years agopersistent profile list order
Damyan Ivanov [Thu, 10 Jan 2019 17:38:04 +0000 (17:38 +0000)]
persistent profile list order

2 years agoprofile list can be reordered
Damyan Ivanov [Wed, 9 Jan 2019 21:03:32 +0000 (21:03 +0000)]
profile list can be reordered

order is not persistent yet

2 years agocleanup →private, remove unused parts
Damyan Ivanov [Wed, 9 Jan 2019 20:56:54 +0000 (20:56 +0000)]
cleanup →private, remove unused parts

2 years agogap-fill missing parent accounts in the hierarchy
Damyan Ivanov [Wed, 9 Jan 2019 20:53:20 +0000 (20:53 +0000)]
gap-fill missing parent accounts in the hierarchy

2 years agoget back the account starring functionality
Damyan Ivanov [Wed, 9 Jan 2019 20:33:27 +0000 (20:33 +0000)]
get back the account starring functionality

2 years agobackend preferences are long gone
Damyan Ivanov [Wed, 9 Jan 2019 20:20:05 +0000 (20:20 +0000)]
backend preferences are long gone

2 years agoclose the drawer when the settings item is selected
Damyan Ivanov [Wed, 9 Jan 2019 20:19:20 +0000 (20:19 +0000)]
close the drawer when the settings item is selected

2 years agotwo NPE fixed
Damyan Ivanov [Wed, 9 Jan 2019 20:18:15 +0000 (20:18 +0000)]
two NPE fixed

2 years agoShow only starred menu now works
Damyan Ivanov [Wed, 9 Jan 2019 20:16:45 +0000 (20:16 +0000)]
Show only starred menu now works

2 years agoproper date/time formatting
Damyan Ivanov [Wed, 9 Jan 2019 05:28:27 +0000 (05:28 +0000)]
proper date/time formatting

2 years agodebug--
Damyan Ivanov [Wed, 9 Jan 2019 05:25:13 +0000 (05:25 +0000)]
debug--

2 years agotext typo
Damyan Ivanov [Wed, 9 Jan 2019 05:25:12 +0000 (05:25 +0000)]
text typo

2 years agoupdate description list after transaction retrieval
Damyan Ivanov [Wed, 9 Jan 2019 05:25:10 +0000 (05:25 +0000)]
update description list after transaction retrieval

2 years agodynamic list of profiles, add profile removal
Damyan Ivanov [Wed, 9 Jan 2019 05:25:02 +0000 (05:25 +0000)]
dynamic list of profiles, add profile removal

2 years agonew class for observing a list
Damyan Ivanov [Wed, 9 Jan 2019 05:16:40 +0000 (05:16 +0000)]
new class for observing a list

notifies observers when items are added/removed/set

can't intercept direct item modifications

2 years agomove ObservableXXXX classes under utils/
Damyan Ivanov [Tue, 8 Jan 2019 20:13:42 +0000 (20:13 +0000)]
move ObservableXXXX classes under utils/

2 years agoskip comments while parsing transactions
Damyan Ivanov [Tue, 8 Jan 2019 19:38:24 +0000 (19:38 +0000)]
skip comments while parsing transactions

2 years agosomewhat complete profile implementation
Damyan Ivanov [Mon, 7 Jan 2019 21:03:17 +0000 (21:03 +0000)]
somewhat complete profile implementation

most of the breakages are fixed, some minor remain

2 years agodrop unique index on profile name
Damyan Ivanov [Sun, 6 Jan 2019 13:44:50 +0000 (13:44 +0000)]
drop unique index on profile name

it messes with the unique key and doesn't prevent duplicate names
because we use replace into anyway

duplicate names are permitted

2 years agoMLDB: the locally-stored context in the Application instance
Damyan Ivanov [Sun, 6 Jan 2019 08:24:34 +0000 (08:24 +0000)]
MLDB: the locally-stored context in the Application instance

it was before, but now it is declared so and the code analysis doesn't
complain anymore

2 years agowhitespace
Damyan Ivanov [Sun, 6 Jan 2019 08:14:23 +0000 (08:14 +0000)]
whitespace

2 years agouse profiles for connection parameters
Damyan Ivanov [Sun, 6 Jan 2019 08:14:13 +0000 (08:14 +0000)]
use profiles for connection parameters

included migration from shared preferences

2 years agobump latest revision to 11
Damyan Ivanov [Sun, 6 Jan 2019 07:57:24 +0000 (07:57 +0000)]
bump latest revision to 11

2 years agomodel: class for working with connection profiles
Damyan Ivanov [Sun, 6 Jan 2019 07:56:48 +0000 (07:56 +0000)]
model: class for working with connection profiles

2 years agoSQL: table for storing connection profiles
Damyan Ivanov [Sun, 6 Jan 2019 07:55:44 +0000 (07:55 +0000)]
SQL: table for storing connection profiles

2 years agonice side-swipe switch between account summary and transaction list
Damyan Ivanov [Sat, 5 Jan 2019 19:24:50 +0000 (19:24 +0000)]
nice side-swipe switch between account summary and transaction list

2 years agoclickable suggests focusable
Damyan Ivanov [Sat, 5 Jan 2019 19:06:59 +0000 (19:06 +0000)]
clickable suggests focusable

2 years agoparse and show ledger name
Damyan Ivanov [Sat, 5 Jan 2019 15:48:10 +0000 (15:48 +0000)]
parse and show ledger name

2 years agostatic class method call
Damyan Ivanov [Sat, 5 Jan 2019 13:34:51 +0000 (13:34 +0000)]
static class method call

2 years agofab is guaranteed to have a value
Damyan Ivanov [Sat, 5 Jan 2019 13:17:01 +0000 (13:17 +0000)]
fab is guaranteed to have a value

2 years agosome lambdas
Damyan Ivanov [Sat, 5 Jan 2019 13:06:16 +0000 (13:06 +0000)]
some lambdas

2 years agowhitespace
Damyan Ivanov [Sat, 5 Jan 2019 13:02:43 +0000 (13:02 +0000)]
whitespace

2 years agothe last update UI observes the data in Data.lastUpdateDate
Damyan Ivanov [Sat, 5 Jan 2019 13:02:33 +0000 (13:02 +0000)]
the last update UI observes the data in Data.lastUpdateDate

2 years agodrop separate account retrieval
Damyan Ivanov [Sat, 5 Jan 2019 13:00:45 +0000 (13:00 +0000)]
drop separate account retrieval

transaction retrieval has it integrated

2 years agoObservableValue now works with null
Damyan Ivanov [Sat, 5 Jan 2019 12:59:09 +0000 (12:59 +0000)]
ObservableValue now works with null

2 years agothis is done in the onPostExecute handler
Damyan Ivanov [Sat, 5 Jan 2019 12:18:20 +0000 (12:18 +0000)]
this is done in the onPostExecute handler

2 years agoobservable last update date
Damyan Ivanov [Sat, 5 Jan 2019 12:17:50 +0000 (12:17 +0000)]
observable last update date

2 years ago+debug
Damyan Ivanov [Sat, 5 Jan 2019 12:17:30 +0000 (12:17 +0000)]
+debug

2 years agooperation cancelled text
Damyan Ivanov [Sat, 5 Jan 2019 12:17:19 +0000 (12:17 +0000)]
operation cancelled text

2 years agoset the observable transaction and account lists as well as the last update date...
Damyan Ivanov [Sat, 5 Jan 2019 12:16:59 +0000 (12:16 +0000)]
set the observable transaction and account lists as well as the last update date upon success

2 years agowhitespace
Damyan Ivanov [Sat, 5 Jan 2019 12:14:34 +0000 (12:14 +0000)]
whitespace

2 years agoassume that no more changed transactions will be discovered after 50 matching transac...
Damyan Ivanov [Sat, 5 Jan 2019 12:13:57 +0000 (12:13 +0000)]
assume that no more changed transactions will be discovered after 50 matching transactions

2 years agoextract the matching transactions limit constant
Damyan Ivanov [Sat, 5 Jan 2019 12:13:11 +0000 (12:13 +0000)]
extract the matching transactions limit constant

2 years agoif(!isCancelled) → throwIfCancelled()
Damyan Ivanov [Sat, 5 Jan 2019 12:12:38 +0000 (12:12 +0000)]
if(!isCancelled) → throwIfCancelled()

2 years agoless demanding transaction row template
Damyan Ivanov [Sat, 5 Jan 2019 12:01:42 +0000 (12:01 +0000)]
less demanding transaction row template

2 years agotype correction
Damyan Ivanov [Sat, 5 Jan 2019 08:27:08 +0000 (08:27 +0000)]
type correction

2 years ago(commented) debug
Damyan Ivanov [Sat, 5 Jan 2019 08:26:51 +0000 (08:26 +0000)]
(commented) debug

2 years agoTransactionListViewModel is static
Damyan Ivanov [Sat, 5 Jan 2019 08:26:37 +0000 (08:26 +0000)]
TransactionListViewModel is static

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

2 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

2 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

2 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

2 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

2 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

2 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

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

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

2 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

2 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

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

2 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

2 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

2 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

2 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

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

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

2 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

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

2 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

2 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

2 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

2 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

2 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

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

2 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

2 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

2 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

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

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

2 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

2 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

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

2 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

2 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

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

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