]> git.ktnx.net Git - mobile-ledger.git/log
mobile-ledger.git
4 years agolimit the number of launcher shortcuts to the maximum supported
Damyan Ivanov [Sat, 25 Jan 2020 12:46:29 +0000 (14:46 +0200)]
limit the number of launcher shortcuts to the maximum supported

instead of crashing attempting th breach the limit

4 years agothemeId -> themeHue
Damyan Ivanov [Sat, 25 Jan 2020 07:25:22 +0000 (09:25 +0200)]
themeId -> themeHue

4 years agoinclude posting comment in transaction hash
Damyan Ivanov [Thu, 23 Jan 2020 19:47:36 +0000 (21:47 +0200)]
include posting comment in transaction hash

so that changes in comment at the source reaches the DB

4 years agotranslate account comment hint
Damyan Ivanov [Thu, 23 Jan 2020 19:06:10 +0000 (21:06 +0200)]
translate account comment hint

4 years agoslight improvement in allowing "-" only at the eginning of the amount
Damyan Ivanov [Thu, 23 Jan 2020 19:04:17 +0000 (21:04 +0200)]
slight improvement in allowing "-" only at the eginning of the amount

4 years agofix appending account entry in transaction list
Damyan Ivanov [Thu, 9 Jan 2020 21:23:03 +0000 (23:23 +0200)]
fix appending account entry in transaction list

4 years agowhitespace
Damyan Ivanov [Thu, 9 Jan 2020 21:19:58 +0000 (23:19 +0200)]
whitespace

4 years agomachinery for tracking currency format (e.g. locale) changes
Damyan Ivanov [Thu, 9 Jan 2020 21:10:04 +0000 (23:10 +0200)]
machinery for tracking currency format (e.g. locale) changes

4 years agotrim comments coming from hledger-web
Damyan Ivanov [Sun, 5 Jan 2020 21:23:44 +0000 (23:23 +0200)]
trim comments coming from hledger-web

4 years agofu: DB support for comments
Damyan Ivanov [Sun, 5 Jan 2020 21:08:24 +0000 (23:08 +0200)]
fu: DB support for comments

4 years agoinitial (buggy) implementation showing account comments in transaction list
Damyan Ivanov [Sun, 5 Jan 2020 21:07:52 +0000 (23:07 +0200)]
initial (buggy) implementation showing account comments in transaction list

4 years agoDB support for transaction account comments
Damyan Ivanov [Sun, 5 Jan 2020 21:05:29 +0000 (23:05 +0200)]
DB support for transaction account comments

4 years agotable for profile currencies (commodities), comment for transaction_accounts
Damyan Ivanov [Sun, 5 Jan 2020 21:01:47 +0000 (23:01 +0200)]
table for profile currencies (commodities), comment for transaction_accounts

4 years agofully functional comments UI
Damyan Ivanov [Sun, 5 Jan 2020 18:23:29 +0000 (20:23 +0200)]
fully functional comments UI

4 years agohelper class to implementing a clear button for EditText views
Damyan Ivanov [Sun, 5 Jan 2020 18:19:16 +0000 (20:19 +0200)]
helper class to implementing a clear button for EditText views

4 years agoadd UI and API support for sending posting (transaction account) comments
Damyan Ivanov [Sun, 5 Jan 2020 15:37:30 +0000 (17:37 +0200)]
add UI and API support for sending posting (transaction account) comments

4 years agoupdate initial DB creation SQL script to include new revisions (up to 24)
Damyan Ivanov [Tue, 31 Dec 2019 15:46:37 +0000 (17:46 +0200)]
update initial DB creation SQL script to include new revisions (up to 24)

4 years agouse non-exclusive mode for write-enabled transactions
Damyan Ivanov [Tue, 31 Dec 2019 15:44:50 +0000 (17:44 +0200)]
use non-exclusive mode for write-enabled transactions

4 years agoexplicit declaration of orientation
Damyan Ivanov [Mon, 23 Dec 2019 17:41:20 +0000 (19:41 +0200)]
explicit declaration of orientation

4 years agoNT: move item touch helper to the adapter
Damyan Ivanov [Mon, 23 Dec 2019 17:31:06 +0000 (19:31 +0200)]
NT: move item touch helper to the adapter

4 years agoNT: convert row to ConstraintLayout
Damyan Ivanov [Mon, 23 Dec 2019 17:27:47 +0000 (19:27 +0200)]
NT: convert row to ConstraintLayout

4 years agoremove more dead code
Damyan Ivanov [Sun, 22 Dec 2019 16:35:34 +0000 (18:35 +0200)]
remove more dead code

4 years agowhitespace
Damyan Ivanov [Sun, 22 Dec 2019 12:58:41 +0000 (14:58 +0200)]
whitespace

4 years agoAccountSummary: fix stuck refreshing indicator after swipe-refresh is followed by...
Damyan Ivanov [Sun, 22 Dec 2019 12:57:57 +0000 (14:57 +0200)]
AccountSummary: fix stuck refreshing indicator after swipe-refresh is followed by a slide to the transaction list

caused by registering the observer of the background task indicator in the
wrong place

4 years agodrop more unused code
Damyan Ivanov [Sun, 22 Dec 2019 12:46:26 +0000 (14:46 +0200)]
drop more unused code

4 years agodrop unused class
Damyan Ivanov [Sun, 22 Dec 2019 12:25:05 +0000 (14:25 +0200)]
drop unused class

4 years agodrop functionality for limiting account tree display to selected accounts
Damyan Ivanov [Sun, 22 Dec 2019 12:21:49 +0000 (14:21 +0200)]
drop functionality for limiting account tree display to selected accounts

not used since the introduction of collapsible sub-trees

4 years agohook the observer after the activity creation
Damyan Ivanov [Sun, 22 Dec 2019 09:25:30 +0000 (11:25 +0200)]
hook the observer after the activity creation

4 years agoNT TODO: undo account removal after swipe
Damyan Ivanov [Sun, 22 Dec 2019 09:25:05 +0000 (11:25 +0200)]
NT TODO: undo account removal after swipe

4 years agodrop unused code
Damyan Ivanov [Sun, 22 Dec 2019 07:49:07 +0000 (09:49 +0200)]
drop unused code

4 years agowhitespace
Damyan Ivanov [Sun, 22 Dec 2019 07:29:34 +0000 (09:29 +0200)]
whitespace

4 years agoremove deprecated usage of SectionsPagerAdapter(FragmentManager)
Damyan Ivanov [Sun, 22 Dec 2019 07:29:23 +0000 (09:29 +0200)]
remove deprecated usage of SectionsPagerAdapter(FragmentManager)

4 years agomove reports TODO from new transaction activity to the main activity
Damyan Ivanov [Sun, 22 Dec 2019 07:26:32 +0000 (09:26 +0200)]
move reports TODO from new transaction activity to the main activity

4 years agodrop TODO about nicer transaction submission progress (done) and move another to...
Damyan Ivanov [Sun, 22 Dec 2019 07:25:52 +0000 (09:25 +0200)]
drop TODO about nicer transaction submission progress (done) and move another to the proper place

4 years agodrop unused code/comments
Damyan Ivanov [Sun, 22 Dec 2019 07:19:49 +0000 (09:19 +0200)]
drop unused code/comments

4 years agoremove done TODO comment
Damyan Ivanov [Sun, 22 Dec 2019 07:14:27 +0000 (09:14 +0200)]
remove done TODO comment

4 years agowhitespace
Damyan Ivanov [Sun, 22 Dec 2019 07:14:10 +0000 (09:14 +0200)]
whitespace

4 years agouse getViewLifecycleOwner when observing LiveData from fragments
Damyan Ivanov [Sun, 22 Dec 2019 07:13:32 +0000 (09:13 +0200)]
use getViewLifecycleOwner when observing LiveData from fragments

4 years agoavoid deprecated usage of viewModelProviders
Damyan Ivanov [Sun, 22 Dec 2019 07:05:37 +0000 (09:05 +0200)]
avoid deprecated usage of viewModelProviders

4 years agorename local variable using proper English
Damyan Ivanov [Sun, 22 Dec 2019 06:48:15 +0000 (08:48 +0200)]
rename local variable using proper English

4 years agodrop redundant field variable
Damyan Ivanov [Sun, 22 Dec 2019 06:45:52 +0000 (08:45 +0200)]
drop redundant field variable

4 years agomerge 'auto' api version handling branch with 'default'
Damyan Ivanov [Sun, 22 Dec 2019 06:44:23 +0000 (08:44 +0200)]
merge 'auto' api version handling branch with 'default'

4 years agoinline redundant variable
Damyan Ivanov [Sun, 22 Dec 2019 06:42:18 +0000 (08:42 +0200)]
inline redundant variable

4 years agoadd backend API version setting to the profile details screen
Damyan Ivanov [Sat, 21 Dec 2019 22:00:07 +0000 (00:00 +0200)]
add backend API version setting to the profile details screen

4 years agowhitespace
Damyan Ivanov [Sat, 21 Dec 2019 21:29:25 +0000 (23:29 +0200)]
whitespace

4 years agostore profile API version in the database
Damyan Ivanov [Sat, 21 Dec 2019 21:24:16 +0000 (23:24 +0200)]
store profile API version in the database

4 years agosupport both 1.14 and 1.15 JSON APIs
Damyan Ivanov [Sat, 21 Dec 2019 21:22:14 +0000 (23:22 +0200)]
support both 1.14 and 1.15 JSON APIs

this is a major and somewhat messy rework

the idea is that several APIs should be able to co-exist

conversion between MoLe's internal structures and the JSON API is moved
to the version-dependent JSON representations

an 'auto' setting for the version (the default) attempts all available
API versions starting from the latest

HTTP status 400 is interpreted as "version mismatch" (same as 405)

4 years agowhitespace
Damyan Ivanov [Thu, 19 Dec 2019 20:06:37 +0000 (22:06 +0200)]
whitespace

4 years agoprofile details fragment: move setup from onCreate to onActivityCreated
Damyan Ivanov [Thu, 19 Dec 2019 20:05:56 +0000 (22:05 +0200)]
profile details fragment: move setup from onCreate to onActivityCreated

this is what the docs suggest and it fixes a problem with the toolbar
title changing to from profile name to 'Profile details' when the screen
is rotated. This is because the title is set during the setup and onCreate
isn't necessarily run when the screen is rotated (contrary to
onActivityCreated which is re-run since the activity is re-created on
reconfiguration (of which screen rotation is an instance))

4 years agorearrangement
Damyan Ivanov [Wed, 18 Dec 2019 21:54:08 +0000 (23:54 +0200)]
rearrangement

4 years agoprofile details: move preferred last transaction filter and future dates together...
Damyan Ivanov [Wed, 18 Dec 2019 21:53:54 +0000 (23:53 +0200)]
profile details: move preferred last transaction filter and future dates together under the 'allow new transactions' switch

4 years agorestore ability to scroll the profile details screen especially when the soft keyboar...
Damyan Ivanov [Wed, 18 Dec 2019 21:51:39 +0000 (23:51 +0200)]
restore ability to scroll the profile details screen especially when the soft keyboard is visible

4 years agoadd a FIXME about a concurrent problem (crash) while loading transactions
Damyan Ivanov [Wed, 18 Dec 2019 21:47:57 +0000 (23:47 +0200)]
add a FIXME about a concurrent problem (crash) while loading transactions

4 years agobump versions of gradle and a bunch of libraries
Damyan Ivanov [Wed, 18 Dec 2019 21:47:04 +0000 (23:47 +0200)]
bump versions of gradle and a bunch of libraries

4 years agounused variable
Damyan Ivanov [Tue, 17 Dec 2019 19:31:17 +0000 (21:31 +0200)]
unused variable

4 years agowhitespace and wrapping
Damyan Ivanov [Tue, 17 Dec 2019 19:31:07 +0000 (21:31 +0200)]
whitespace and wrapping

4 years agoprofile editor: consistent item colors in the profile details screen
Damyan Ivanov [Tue, 17 Dec 2019 19:29:54 +0000 (21:29 +0200)]
profile editor: consistent item colors in the profile details screen

4 years agoprofile editor: remove the profile options when removing a profile
Damyan Ivanov [Tue, 17 Dec 2019 19:29:01 +0000 (21:29 +0200)]
profile editor: remove the profile options when removing a profile

4 years agohonor the future dates setting in the new transaction date picker
Damyan Ivanov [Tue, 17 Dec 2019 19:28:21 +0000 (21:28 +0200)]
honor the future dates setting in the new transaction date picker

4 years agomanage future dates entry option in the profile editor
Damyan Ivanov [Tue, 17 Dec 2019 19:27:11 +0000 (21:27 +0200)]
manage future dates entry option in the profile editor

4 years agoadd profile option for entering dates in the future
Damyan Ivanov [Tue, 17 Dec 2019 19:20:32 +0000 (21:20 +0200)]
add profile option for entering dates in the future

4 years agoSendTransactionTask: log full request JSON in simulation mode (debug builds)
Damyan Ivanov [Tue, 10 Dec 2019 19:56:22 +0000 (21:56 +0200)]
SendTransactionTask: log full request JSON in simulation mode (debug builds)

4 years agobump version
Damyan Ivanov [Tue, 10 Dec 2019 19:54:07 +0000 (21:54 +0200)]
bump version

4 years agoprepare v0.11.0/30 v0.11.0
Damyan Ivanov [Tue, 3 Dec 2019 20:35:05 +0000 (20:35 +0000)]
prepare v0.11.0/30

4 years agoFix hledger-web URL in README.md
Damyan Ivanov [Sun, 1 Dec 2019 06:23:56 +0000 (06:23 +0000)]
Fix hledger-web URL in README.md

4 years agopermit cleartext traffic on P
Damyan Ivanov [Sat, 30 Nov 2019 21:26:48 +0000 (23:26 +0200)]
permit cleartext traffic on P

clearly using https is better, but this is something outside of MoLe's
control, so let the users use whatever they want

The profile editor already warns when authorization is used over plain
http

4 years agoParsedAmount: do not create a price member object by default
Damyan Ivanov [Sat, 30 Nov 2019 21:04:41 +0000 (23:04 +0200)]
ParsedAmount: do not create a price member object by default

when no price is entered the member should be sent as null, otherwise
hledger-web 1.15.2 rejects the request with err 400 and complains about
invalid price object

further fixing this would need making it send a proper price object, but
since MoLe doesn't support entering prices, that is left for the future

4 years agostyle the simulation watermark to stretch
Damyan Ivanov [Sat, 30 Nov 2019 14:11:56 +0000 (16:11 +0200)]
style the simulation watermark to stretch

requires API 26, so also set a larger default textSize for those not
lucky to have modern Android

4 years agofix NPE in ParsedLedgerTransaction.setTindex
Damyan Ivanov [Sat, 30 Nov 2019 14:10:35 +0000 (16:10 +0200)]
fix NPE in ParsedLedgerTransaction.setTindex

4 years agomove AsyncCrasher in its own file
Damyan Ivanov [Sat, 30 Nov 2019 10:54:47 +0000 (12:54 +0200)]
move AsyncCrasher in its own file

avoids implicit reference to parent activity class which may lead to
memory leaks

4 years agoNT: add simulation watermark when simulation is enabled
Damyan Ivanov [Sat, 30 Nov 2019 10:54:01 +0000 (12:54 +0200)]
NT: add simulation watermark when simulation is enabled

4 years agofix saving transaction date when it is null (regression)
Damyan Ivanov [Wed, 27 Nov 2019 06:31:17 +0000 (08:31 +0200)]
fix saving transaction date when it is null (regression)

4 years agonew transaction: simulated backend communication is controller via menu (visible...
Damyan Ivanov [Wed, 27 Nov 2019 06:30:38 +0000 (08:30 +0200)]
new transaction: simulated backend communication is controller via menu (visible only in debug builds)

4 years agoNT model/setDate: replace empty dates with null
Damyan Ivanov [Tue, 26 Nov 2019 22:04:19 +0000 (00:04 +0200)]
NT model/setDate: replace empty dates with null

4 years agoNT fragment: copy the account objects when constructing the transaction to send
Damyan Ivanov [Tue, 26 Nov 2019 22:03:50 +0000 (00:03 +0200)]
NT fragment: copy the account objects when constructing the transaction to send

the single account row without an amount has its amount set and this should
not reflect the data in the model which may be re-displayed if when the
save is unsuccessful

4 years agoNT fragment: correct logic when determining whether to keep the entered data upon...
Damyan Ivanov [Tue, 26 Nov 2019 22:01:59 +0000 (00:01 +0200)]
NT fragment: correct logic when determining whether to keep the entered data upon fragment attachment

4 years agoNT fragment: bind the view model to the activity
Damyan Ivanov [Tue, 26 Nov 2019 22:00:39 +0000 (00:00 +0200)]
NT fragment: bind the view model to the activity

the fragment can be re-created when navigating to the save progress
fragment. when it is re-created the view model instance is re-created too,
losing the unsaved transaction

4 years agoNT: pass save error to the data entry fragment upon re-appearance
Damyan Ivanov [Tue, 26 Nov 2019 21:58:50 +0000 (23:58 +0200)]
NT: pass save error to the data entry fragment upon re-appearance

4 years agoLedgerTransactionAccount: add copy constructor
Damyan Ivanov [Tue, 26 Nov 2019 21:58:15 +0000 (23:58 +0200)]
LedgerTransactionAccount: add copy constructor

4 years agowhitespace
Damyan Ivanov [Tue, 26 Nov 2019 21:57:55 +0000 (23:57 +0200)]
whitespace

4 years agowhitespace
Damyan Ivanov [Tue, 26 Nov 2019 21:57:27 +0000 (23:57 +0200)]
whitespace

4 years agoLedgerTransaction.asParsedTransaction: handle null date defaulting to today
Damyan Ivanov [Tue, 26 Nov 2019 21:57:13 +0000 (23:57 +0200)]
LedgerTransaction.asParsedTransaction: handle null date defaulting to today

4 years agowhitespace
Damyan Ivanov [Tue, 26 Nov 2019 21:56:28 +0000 (23:56 +0200)]
whitespace

4 years agonew transaction form: use a CoordinatorLayout as base, and poop the FAB out of the...
Damyan Ivanov [Tue, 26 Nov 2019 21:56:05 +0000 (23:56 +0200)]
new transaction form: use a CoordinatorLayout as base, and poop the FAB out of the constraint layout

makes it behave nice when a snack bar message appears

4 years agoNT: fragment animations all at medium speed
Damyan Ivanov [Tue, 26 Nov 2019 21:55:07 +0000 (23:55 +0200)]
NT: fragment animations all at medium speed

4 years agoTransaction saver task: add 30% probability of exception when simulating network...
Damyan Ivanov [Tue, 26 Nov 2019 21:54:27 +0000 (23:54 +0200)]
Transaction saver task: add 30% probability of exception when simulating network activity

4 years agonew transaction: (commented) simulate backend communication in debug builds
Damyan Ivanov [Tue, 26 Nov 2019 06:14:40 +0000 (08:14 +0200)]
new transaction: (commented) simulate backend communication in debug builds

5 years agoMisc: add routined for hiding the soft keyboard
Damyan Ivanov [Mon, 25 Nov 2019 22:08:01 +0000 (00:08 +0200)]
Misc: add routined for hiding the soft keyboard

5 years agoMisc.showSoftKeyboard: handle fragemtn.getActivity() returning null
Damyan Ivanov [Mon, 25 Nov 2019 22:07:24 +0000 (00:07 +0200)]
Misc.showSoftKeyboard: handle fragemtn.getActivity() returning null

5 years agotransaction save progress - better centering of the progress bar
Damyan Ivanov [Mon, 25 Nov 2019 22:06:38 +0000 (00:06 +0200)]
transaction save progress - better centering of the progress bar

5 years agoNT: account/amount focus also survives re-configuration
Damyan Ivanov [Mon, 25 Nov 2019 21:25:52 +0000 (23:25 +0200)]
NT: account/amount focus also survives re-configuration

5 years agowhitespace
Damyan Ivanov [Mon, 25 Nov 2019 21:12:16 +0000 (23:12 +0200)]
whitespace

5 years agoNT: do not select all text in description and account name
Damyan Ivanov [Mon, 25 Nov 2019 21:11:47 +0000 (23:11 +0200)]
NT: do not select all text in description and account name

we have the [X] to clear the input if needed and auto-select-all on
large inputs is visually disturbing

5 years agoNT: plain LinearLayout is good enough here
Damyan Ivanov [Mon, 25 Nov 2019 20:58:18 +0000 (22:58 +0200)]
NT: plain LinearLayout is good enough here

5 years agoNT: row focus survives re-configuration
Damyan Ivanov [Mon, 25 Nov 2019 20:57:41 +0000 (22:57 +0200)]
NT: row focus survives re-configuration

5 years agonew transaction fragment: survive configuration changes / fragment restart
Damyan Ivanov [Sun, 24 Nov 2019 21:02:44 +0000 (23:02 +0200)]
new transaction fragment: survive configuration changes / fragment restart

5 years agowhitespace
Damyan Ivanov [Sun, 24 Nov 2019 20:46:09 +0000 (22:46 +0200)]
whitespace

5 years agonew transaction activity appears from the bottom edge
Damyan Ivanov [Sun, 24 Nov 2019 20:45:35 +0000 (22:45 +0200)]
new transaction activity appears from the bottom edge

5 years agoreplace single case switch() with if()
Damyan Ivanov [Sun, 24 Nov 2019 20:45:07 +0000 (22:45 +0200)]
replace single case switch() with if()

5 years agoremove unised constant
Damyan Ivanov [Sun, 24 Nov 2019 20:44:51 +0000 (22:44 +0200)]
remove unised constant