]> git.ktnx.net Git - mobile-ledger.git/log
mobile-ledger.git
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

5 years agoslightly shorter text while saving the transaction
Damyan Ivanov [Sun, 24 Nov 2019 20:44:43 +0000 (22:44 +0200)]
slightly shorter text while saving the transaction

5 years agomove new transaction UI into a fragment, have a clean saving progress
Damyan Ivanov [Sun, 24 Nov 2019 20:43:43 +0000 (22:43 +0200)]
move new transaction UI into a fragment, have a clean saving progress

5 years agonew transaction: extract account list in a separate layout
Damyan Ivanov [Sun, 24 Nov 2019 14:39:59 +0000 (16:39 +0200)]
new transaction: extract account list in a separate layout

5 years agoAdd strings for saving transaction layout
Damyan Ivanov [Sun, 24 Nov 2019 14:38:08 +0000 (16:38 +0200)]
Add strings for saving transaction layout

5 years agoadd upward animations
Damyan Ivanov [Sun, 24 Nov 2019 14:37:35 +0000 (16:37 +0200)]
add upward animations

5 years agobetter calendar icon
Damyan Ivanov [Sun, 24 Nov 2019 14:00:54 +0000 (16:00 +0200)]
better calendar icon

5 years agoNT: date input is no longer focusable
Damyan Ivanov [Sun, 24 Nov 2019 11:14:41 +0000 (13:14 +0200)]
NT: date input is no longer focusable

5 years agoNT: convert top row to LinearLayout
Damyan Ivanov [Sun, 24 Nov 2019 11:14:16 +0000 (13:14 +0200)]
NT: convert top row to LinearLayout

handles two-row date field better, aligning the description to the bottom

5 years agoNT: fix month interpretation when formatting calendar date
Damyan Ivanov [Sun, 24 Nov 2019 11:13:11 +0000 (13:13 +0200)]
NT: fix month interpretation when formatting calendar date

5 years agoadd calendar drawable to the date input of the new transaction activity
Damyan Ivanov [Sun, 24 Nov 2019 11:12:41 +0000 (13:12 +0200)]
add calendar drawable to the date input of the new transaction activity

5 years agocalendar item icons
Damyan Ivanov [Sun, 24 Nov 2019 11:11:52 +0000 (13:11 +0200)]
calendar item icons

5 years agomore 1.15.1 compatibility - default values for tdate2, tprecedingcomment; add pdate2
Damyan Ivanov [Wed, 20 Nov 2019 20:53:15 +0000 (22:53 +0200)]
more 1.15.1 compatibility - default values for tdate2, tprecedingcomment; add pdate2

5 years agoattempt to be compatible with hledger-web 1.15.1
Damyan Ivanov [Wed, 20 Nov 2019 20:52:27 +0000 (22:52 +0200)]
attempt to be compatible with hledger-web 1.15.1

add 'ptransaction_' field to the postings

5 years agoadd missing horizontal constraints
Damyan Ivanov [Sun, 17 Nov 2019 17:37:41 +0000 (19:37 +0200)]
add missing horizontal constraints

5 years agoreplace anonymous class with lambda
Damyan Ivanov [Sun, 17 Nov 2019 17:27:40 +0000 (19:27 +0200)]
replace anonymous class with lambda

5 years agorework checkTransactionSubmittable
Damyan Ivanov [Sun, 17 Nov 2019 17:25:14 +0000 (19:25 +0200)]
rework checkTransactionSubmittable

more debug, clear rules, and hints when decision is made

5 years agowhitespace
Damyan Ivanov [Sun, 17 Nov 2019 17:24:04 +0000 (19:24 +0200)]
whitespace

5 years agoNT activity: drop method resetForm()
Damyan Ivanov [Sun, 17 Nov 2019 17:23:49 +0000 (19:23 +0200)]
NT activity: drop method resetForm()

hollow wrapper around listAdapter.reset();

5 years agoNT setData(): expand ? : to an if, always set hint
Damyan Ivanov [Sun, 17 Nov 2019 17:20:27 +0000 (19:20 +0200)]
NT setData(): expand ? : to an if, always set hint

5 years agoNT hint boserver: use setHint(resource) when no hint is given
Damyan Ivanov [Sun, 17 Nov 2019 17:18:04 +0000 (19:18 +0200)]
NT hint boserver: use setHint(resource) when no hint is given

instead of fetching the resource value

5 years agoNewTransaction Item.setEditable: allow to be called for head row too
Damyan Ivanov [Sun, 17 Nov 2019 17:15:40 +0000 (19:15 +0200)]
NewTransaction Item.setEditable: allow to be called for head row too

5 years agoNew transaction Item: variant of ensureType with two allowed types
Damyan Ivanov [Sun, 17 Nov 2019 17:14:50 +0000 (19:14 +0200)]
New transaction Item: variant of ensureType with two allowed types

5 years agoNewTransactionModel: drop unused method isEditable()
Damyan Ivanov [Sun, 17 Nov 2019 17:14:01 +0000 (19:14 +0200)]
NewTransactionModel: drop unused method isEditable()

5 years agoNew transaction: when toggling editting, include the head row
Damyan Ivanov [Sun, 17 Nov 2019 17:13:18 +0000 (19:13 +0200)]
New transaction: when toggling editting, include the head row

5 years agoNewTransactionModel/Item: initialize amount hint on creation
Damyan Ivanov [Sun, 17 Nov 2019 17:12:13 +0000 (19:12 +0200)]
NewTransactionModel/Item: initialize amount hint on creation

fixes "ghost" hints

5 years agowhitespace
Damyan Ivanov [Wed, 13 Nov 2019 21:40:37 +0000 (23:40 +0200)]
whitespace

5 years agoinvert if(!smth) {} else {} condition
Damyan Ivanov [Wed, 13 Nov 2019 21:40:29 +0000 (23:40 +0200)]
invert if(!smth) {} else {} condition

5 years agoNewTransItem/amountHint: allow for null hints, and avoid extra Live triggers
Damyan Ivanov [Wed, 13 Nov 2019 21:39:46 +0000 (23:39 +0200)]
NewTransItem/amountHint: allow for null hints, and avoid extra Live triggers

5 years agoNew transaction: locale aware number input
Damyan Ivanov [Wed, 13 Nov 2019 21:38:58 +0000 (23:38 +0200)]
New transaction: locale aware number input

uses hacks on pre-O devices that break inserting "-" at the beginning
(requires that the minus is entered on an empty field)

5 years agonew transaction: locale-aware number formatting (broken in RecyclerView migration)
Damyan Ivanov [Wed, 13 Nov 2019 21:36:52 +0000 (23:36 +0200)]
new transaction: locale-aware number formatting (broken in RecyclerView migration)

5 years agowhitespace
Damyan Ivanov [Wed, 13 Nov 2019 20:15:51 +0000 (22:15 +0200)]
whitespace

5 years agoNew transaction: rework empty amounts hints, broken after RecyclerView migration
Damyan Ivanov [Wed, 13 Nov 2019 20:15:26 +0000 (22:15 +0200)]
New transaction: rework empty amounts hints, broken after RecyclerView migration

5 years agowhitespace
Damyan Ivanov [Wed, 13 Nov 2019 19:43:59 +0000 (21:43 +0200)]
whitespace

5 years agoNew transaction: fix clearing the single negative amount broken after ReecyclerView...
Damyan Ivanov [Wed, 13 Nov 2019 19:43:41 +0000 (21:43 +0200)]
New transaction: fix clearing the single negative amount broken after ReecyclerView migration

5 years agoNew transaction: wider amount box, accommodating -999.99 at least
Damyan Ivanov [Wed, 13 Nov 2019 19:42:25 +0000 (21:42 +0200)]
New transaction: wider amount box, accommodating -999.99 at least

5 years agowhitespace
Damyan Ivanov [Mon, 11 Nov 2019 06:47:58 +0000 (08:47 +0200)]
whitespace

5 years agocatch bad numbers when parsing entered amount
Damyan Ivanov [Mon, 11 Nov 2019 06:47:38 +0000 (08:47 +0200)]
catch bad numbers when parsing entered amount

5 years agofix off by one error when filling transaction after selecting description
Damyan Ivanov [Mon, 11 Nov 2019 06:39:42 +0000 (08:39 +0200)]
fix off by one error when filling transaction after selecting description

5 years agofix format spec in exception reporting
Damyan Ivanov [Mon, 11 Nov 2019 06:39:20 +0000 (08:39 +0200)]
fix format spec in exception reporting

bonus: spot the irony

5 years agoshowSoftKeyboard: show also when the present keyboard has no keys (e.g. there is...
Damyan Ivanov [Mon, 11 Nov 2019 06:35:00 +0000 (08:35 +0200)]
showSoftKeyboard: show also when the present keyboard has no keys (e.g. there is no hardware keyboard)

5 years agoDatePickerFragment: dismiss before invoking the date picked listener
Damyan Ivanov [Mon, 11 Nov 2019 06:29:44 +0000 (08:29 +0200)]
DatePickerFragment: dismiss before invoking the date picked listener

may want to do something with the focus

5 years agoshowSoftKeyboard: act only of no hardware keyboard is present and open
Damyan Ivanov [Mon, 11 Nov 2019 06:28:41 +0000 (08:28 +0200)]
showSoftKeyboard: act only of no hardware keyboard is present and open

5 years agoshowSoftKeyboard(fragment): delegate to showSoftKeyboard(fragment.getActivity())
Damyan Ivanov [Mon, 11 Nov 2019 06:27:48 +0000 (08:27 +0200)]
showSoftKeyboard(fragment): delegate to showSoftKeyboard(fragment.getActivity())

no need to implement the same thing multiple times

5 years agosplit ef/else/if into separate statements
Damyan Ivanov [Sun, 10 Nov 2019 17:50:47 +0000 (19:50 +0200)]
split ef/else/if into separate statements

5 years agodebug++
Damyan Ivanov [Sun, 10 Nov 2019 17:50:05 +0000 (19:50 +0200)]
debug++

5 years agodebug--
Damyan Ivanov [Sun, 10 Nov 2019 17:49:56 +0000 (19:49 +0200)]
debug--

5 years agoconvert new transaction item 'editable' flat to LiveData
Damyan Ivanov [Sun, 10 Nov 2019 17:49:26 +0000 (19:49 +0200)]
convert new transaction item 'editable' flat to LiveData

5 years agodebug++
Damyan Ivanov [Sun, 10 Nov 2019 17:48:22 +0000 (19:48 +0200)]
debug++

5 years agorewrap
Damyan Ivanov [Sun, 10 Nov 2019 17:46:32 +0000 (19:46 +0200)]
rewrap

5 years agofix swipe-away in reworked new transaction activity
Damyan Ivanov [Sun, 10 Nov 2019 17:44:16 +0000 (19:44 +0200)]
fix swipe-away in reworked new transaction activity

the first item (date and description) can't be swiped, as well as the last
two remaining accounts

5 years agouse Misc.isZero for zero-like comparison
Damyan Ivanov [Sun, 10 Nov 2019 17:39:51 +0000 (19:39 +0200)]
use Misc.isZero for zero-like comparison

5 years agomake soft keyboard appear when new transaction description/account gets focus
Damyan Ivanov [Sun, 10 Nov 2019 17:39:09 +0000 (19:39 +0200)]
make soft keyboard appear when new transaction description/account gets focus

this is used when the focus is given artificially, when date is picked
(and focus goes to the transaction description) and when a transaction
description is selected from the drop down (and focus goes to the first
account name)

5 years agoauto select new transaction description/amounts upon focus
Damyan Ivanov [Sun, 10 Nov 2019 17:34:07 +0000 (19:34 +0200)]
auto select new transaction description/amounts upon focus

5 years agoNewTransItemHolder: prevent sync loops via model data observers
Damyan Ivanov [Sun, 10 Nov 2019 11:22:17 +0000 (13:22 +0200)]
NewTransItemHolder: prevent sync loops via model data observers

when the data in the model is changed (e.g. in a reset operation) the
new data needs to be sent to the UI without this causing data sync back
to the model

5 years agoNewTransAct: set global profile in initProfile() when called via app shortcut
Damyan Ivanov [Sun, 10 Nov 2019 11:20:37 +0000 (13:20 +0200)]
NewTransAct: set global profile in initProfile() when called via app shortcut

same is done in super.initProfile() during normal startup

the global profile setting is needed in the item holder when setting up
lookups

5 years agoProfileThemedActivity: fetch current profile synchronously
Damyan Ivanov [Sun, 10 Nov 2019 09:15:47 +0000 (11:15 +0200)]
ProfileThemedActivity: fetch current profile synchronously

the onCreate method must finish setting up the theme before
returning and giving way to creation of views

if the current profile data comes asynchronously, it may be too late and
some views may have already been created

5 years agowhitespace
Damyan Ivanov [Sat, 9 Nov 2019 23:16:47 +0000 (01:16 +0200)]
whitespace

5 years agomore robust theme ID calculation
Damyan Ivanov [Sat, 9 Nov 2019 23:15:36 +0000 (01:15 +0200)]
more robust theme ID calculation

not depending on specific resource ID ordering that is no longer present
with recent android studio versions

5 years agorework new transaction activity with a RecyclerView
Damyan Ivanov [Sat, 9 Nov 2019 22:51:00 +0000 (00:51 +0200)]
rework new transaction activity with a RecyclerView

in the process:
 - decouple DatePickerFragment from the new transaction activity
 - fix ImeAction setting
 - fix focusing next element when date/old transaction/account name is picked

5 years agoupgrade gradle plugin to 3.5.2
Damyan Ivanov [Sat, 9 Nov 2019 22:42:14 +0000 (00:42 +0200)]
upgrade gradle plugin to 3.5.2

5 years agowhitespace
Damyan Ivanov [Sat, 19 Oct 2019 13:17:43 +0000 (16:17 +0300)]
whitespace

5 years agoProfileThemedActivity: load profile from options if none is loaded yet
Damyan Ivanov [Sat, 19 Oct 2019 13:17:16 +0000 (16:17 +0300)]
ProfileThemedActivity: load profile from options if none is loaded yet

This may happen if the app is removed from memory while the new transaction
activity is active; when the app is started later it goes straight to the
new transaction activity and there is no profile loaded from the options db
in the normal startup the main activity is first and it loads the profile.

Another way to start the new transaction activity without passing via the
main activity is through the app shortcuts

5 years agoRe-enable app shortcuts on android 7.1+ (Nougat++)
Damyan Ivanov [Sat, 19 Oct 2019 09:22:38 +0000 (12:22 +0300)]
Re-enable app shortcuts on android 7.1+ (Nougat++)

was wrongly requiring android 8 (oreo)

5 years agofactor-out parsing string as hledger's ParsedQuantity
Damyan Ivanov [Sun, 22 Sep 2019 11:48:44 +0000 (14:48 +0300)]
factor-out parsing string as hledger's ParsedQuantity

the separate method can now be used for setting the object's value

5 years agowhitespace
Damyan Ivanov [Sat, 21 Sep 2019 17:54:11 +0000 (20:54 +0300)]
whitespace

5 years agohookAutocompletion: leave the "focus the next view" logic for the callback
Damyan Ivanov [Sat, 21 Sep 2019 17:53:53 +0000 (20:53 +0300)]
hookAutocompletion: leave the "focus the next view" logic for the callback

getting to the "next" view from the auto completion adapter is rather
difficult, and the callback already has all the needed information

5 years agoAutoWithClear: manage the drawable on text change only if having focus
Damyan Ivanov [Sat, 21 Sep 2019 17:52:04 +0000 (20:52 +0300)]
AutoWithClear: manage the drawable on text change only if having focus

5 years agomove clear button implementation to a new custom class
Damyan Ivanov [Sat, 21 Sep 2019 14:40:09 +0000 (17:40 +0300)]
move clear button implementation to a new custom class

better encapsulation, accessibility concerns about onTouch interception
solved

5 years agonew transaction: add a clear button to edited fields
Damyan Ivanov [Sat, 21 Sep 2019 13:02:04 +0000 (16:02 +0300)]
new transaction: add a clear button to edited fields

makes it easy to clear a field's text without select-all or holding on the
backspace key

5 years agonew transaction: dynamically add all of the account rows, even initial ones
Damyan Ivanov [Sat, 21 Sep 2019 12:59:41 +0000 (15:59 +0300)]
new transaction: dynamically add all of the account rows, even initial ones

this ensures that all the row's properties (incl. its contents) are uniform

5 years agonew transaction: show soft keyboard after choosing transaction date
Damyan Ivanov [Sat, 21 Sep 2019 08:40:58 +0000 (11:40 +0300)]
new transaction: show soft keyboard after choosing transaction date

5 years agogradle upgrade
Damyan Ivanov [Sat, 21 Sep 2019 08:07:53 +0000 (11:07 +0300)]
gradle upgrade

5 years agoallow toggling password visibility in profile details
Damyan Ivanov [Sun, 1 Sep 2019 09:23:32 +0000 (12:23 +0300)]
allow toggling password visibility in profile details

5 years agoanother compiler warning about fixed non-translatable string
Damyan Ivanov [Sat, 20 Jul 2019 19:23:08 +0000 (22:23 +0300)]
another compiler warning about fixed non-translatable string

replaced with a constant declaration

5 years agoreplace .clone() with a copy constructor
Damyan Ivanov [Sat, 20 Jul 2019 19:18:23 +0000 (22:18 +0300)]
replace .clone() with a copy constructor

fixes a compiler warning

5 years agostreamline profile validation
Damyan Ivanov [Sat, 20 Jul 2019 19:17:47 +0000 (22:17 +0300)]
streamline profile validation

avoids insistent warnings about invalid URL

5 years agoadd navigation libraries to gradle dependencies
Damyan Ivanov [Sat, 20 Jul 2019 18:47:54 +0000 (21:47 +0300)]
add navigation libraries to gradle dependencies

not really used for now, but may be in the future

5 years agorequire URL protocol to be HTTP or HTTPS
Damyan Ivanov [Sat, 20 Jul 2019 18:45:58 +0000 (21:45 +0300)]
require URL protocol to be HTTP or HTTPS

5 years agowarn when using authentication with insecure HTTP scheme
Damyan Ivanov [Sat, 20 Jul 2019 18:36:37 +0000 (21:36 +0300)]
warn when using authentication with insecure HTTP scheme

5 years agoclarify that crash reports are sent via email and user can review them before sending
Damyan Ivanov [Sat, 20 Jul 2019 18:09:50 +0000 (21:09 +0300)]
clarify that crash reports are sent via email and user can review them before sending

5 years agostrings: replace three dots with ellipsis
Damyan Ivanov [Sat, 20 Jul 2019 18:09:09 +0000 (21:09 +0300)]
strings: replace three dots with ellipsis

5 years agoadd contentDescription for the color picker button in the profile editor
Damyan Ivanov [Sat, 20 Jul 2019 17:52:21 +0000 (20:52 +0300)]
add contentDescription for the color picker button in the profile editor

5 years agoremove unused namespace declaration
Damyan Ivanov [Sat, 20 Jul 2019 17:51:45 +0000 (20:51 +0300)]
remove unused namespace declaration

5 years agobump gradle version
Damyan Ivanov [Thu, 18 Jul 2019 19:41:24 +0000 (22:41 +0300)]
bump gradle version

5 years agowhitespace
Damyan Ivanov [Sat, 13 Jul 2019 05:54:51 +0000 (08:54 +0300)]
whitespace

5 years agoprofile editor: validate entered URL
Damyan Ivanov [Sat, 13 Jul 2019 05:53:46 +0000 (08:53 +0300)]
profile editor: validate entered URL

5 years agoreplace hard-coded basic HTTP authentication with triggered Authenticator
Damyan Ivanov [Sat, 13 Jul 2019 05:38:37 +0000 (08:38 +0300)]
replace hard-coded basic HTTP authentication with triggered Authenticator

checks whether host name matches

avoids exposing authentication data to wifi portals

5 years agowhitespace
Damyan Ivanov [Sat, 13 Jul 2019 05:35:59 +0000 (08:35 +0300)]
whitespace

5 years agogradle: update a bunch of libraries to the current stable version
Damyan Ivanov [Thu, 11 Jul 2019 09:51:36 +0000 (12:51 +0300)]
gradle: update a bunch of libraries to the current stable version

appcompat, material, lifecycle-extensions, recyclerview, test runners

5 years agoprepare v0.10.3/29 v0.10.3
Damyan Ivanov [Sun, 30 Jun 2019 10:32:40 +0000 (10:32 +0000)]
prepare v0.10.3/29

5 years agoadd a test for the ParsedQuantity(String) constructor
Damyan Ivanov [Fri, 28 Jun 2019 20:14:24 +0000 (23:14 +0300)]
add a test for the ParsedQuantity(String) constructor

5 years agoadd constructor for json.ParsedQuantity that instantiates from string
Damyan Ivanov [Fri, 28 Jun 2019 20:13:36 +0000 (23:13 +0300)]
add constructor for json.ParsedQuantity that instantiates from string

fixes a reported crash

5 years agoprepare 0.10.2 (28) release v0.10.2
Damyan Ivanov [Fri, 14 Jun 2019 16:37:34 +0000 (16:37 +0000)]
prepare 0.10.2 (28) release

5 years agoAnother JSON parser fix from Mattéo Delabre, this time for the posting tags
Damyan Ivanov [Fri, 14 Jun 2019 16:29:32 +0000 (19:29 +0300)]
Another JSON parser fix from Mattéo Delabre, this time for the posting tags

5 years agoFix tags parsing with JSON backend
Damyan Ivanov [Tue, 11 Jun 2019 20:13:03 +0000 (23:13 +0300)]
Fix tags parsing with JSON backend

Patch by Mattéo Delabre

5 years agoprepare 0.10.1/27 release v0.10.1
Damyan Ivanov [Wed, 5 Jun 2019 18:46:25 +0000 (18:46 +0000)]
prepare 0.10.1/27 release

5 years agolegacy parser: do not crash with amounts like '1,234.56'
Damyan Ivanov [Wed, 5 Jun 2019 18:34:16 +0000 (21:34 +0300)]
legacy parser: do not crash with amounts like '1,234.56'

5 years agoadd MoLe version to the crash report
Damyan Ivanov [Wed, 5 Jun 2019 18:27:50 +0000 (21:27 +0300)]
add MoLe version to the crash report