mobile-ledger.git
7 months agoproperly detect when profile list hasn't loaded yet
Damyan Ivanov [Fri, 3 May 2019 16:07:06 +0000 (19:07 +0300)]
properly detect when profile list hasn't loaded yet

7 months agowhitespace
Damyan Ivanov [Fri, 3 May 2019 16:06:53 +0000 (19:06 +0300)]
whitespace

7 months agomove DB access routines to the application class
Damyan Ivanov [Fri, 3 May 2019 16:06:32 +0000 (19:06 +0300)]
move DB access routines to the application class

it is a natural context "source" for the DB creation and a singleton
global instance

7 months agostore the theme Id in the preferences so that no DB is needed to access it
Damyan Ivanov [Fri, 3 May 2019 15:26:35 +0000 (18:26 +0300)]
store the theme Id in the preferences so that no DB is needed to access it

the idea is to set up the main activity without accessing the database
so that a Loading... screen is shown while the DB is being upgraded

7 months ago"Loading..." screen while DB is being read
Damyan Ivanov [Fri, 3 May 2019 15:26:11 +0000 (18:26 +0300)]
"Loading..." screen while DB is being read

not noticeable at present, because the first DB read (and possible upgrade)
is being run when the activity is created.

7 months agoasynchronous profile setup
Damyan Ivanov [Fri, 3 May 2019 15:25:08 +0000 (18:25 +0300)]
asynchronous profile setup

7 months agoMLDB: asyncronous variant of getOption
Damyan Ivanov [Fri, 3 May 2019 15:22:39 +0000 (18:22 +0300)]
MLDB: asyncronous variant of getOption

7 months agoavoid duplicate theme setup upon startup and profile+theme change
Damyan Ivanov [Fri, 3 May 2019 15:21:25 +0000 (18:21 +0300)]
avoid duplicate theme setup upon startup and profile+theme change

7 months agowhitespace
Damyan Ivanov [Fri, 3 May 2019 15:21:22 +0000 (18:21 +0300)]
whitespace

7 months agosuppress some warnings
Damyan Ivanov [Fri, 3 May 2019 15:18:23 +0000 (18:18 +0300)]
suppress some warnings

7 months agodrop remnants of hollow transaction list item
Damyan Ivanov [Fri, 3 May 2019 16:11:38 +0000 (19:11 +0300)]
drop remnants of hollow transaction list item

7 months agomove null check before the value is used
Damyan Ivanov [Thu, 2 May 2019 15:16:19 +0000 (18:16 +0300)]
move null check before the value is used

7 months agostop any running back-end data retrieval when the profile is changed
Damyan Ivanov [Fri, 3 May 2019 15:16:09 +0000 (18:16 +0300)]
stop any running back-end data retrieval when the profile is changed

7 months agomove initiation of back-end data retrieval to Data
Damyan Ivanov [Fri, 3 May 2019 15:12:01 +0000 (18:12 +0300)]
move initiation of back-end data retrieval to Data

7 months agodebug message when profile data is wiped
Damyan Ivanov [Fri, 3 May 2019 15:11:40 +0000 (18:11 +0300)]
debug message when profile data is wiped

7 months agooff-load option setting DB update to the background work queue
Damyan Ivanov [Fri, 3 May 2019 15:10:29 +0000 (18:10 +0300)]
off-load option setting DB update to the background work queue

such an update may have to wait for the DB to complete any reads, like while
loading transaction data or even transaction data retrieval. that would lead
to UI freeze

delaying the update has no ill effects, since the data is needed only the next
time the app is run

7 months agobump versions of two libraries
Damyan Ivanov [Fri, 3 May 2019 15:10:21 +0000 (18:10 +0300)]
bump versions of two libraries

7 months agowhitespace
Damyan Ivanov [Fri, 3 May 2019 15:10:15 +0000 (18:10 +0300)]
whitespace

7 months agomigrate a bunch of globals to LiveData
Damyan Ivanov [Fri, 3 May 2019 15:09:52 +0000 (18:09 +0300)]
migrate a bunch of globals to LiveData

7 months agoLockHolder: reset lock instances to null after unlocking
Damyan Ivanov [Sun, 28 Apr 2019 19:32:24 +0000 (22:32 +0300)]
LockHolder: reset lock instances to null after unlocking

7 months agoEnglish locale String.format
Damyan Ivanov [Sun, 28 Apr 2019 19:30:30 +0000 (22:30 +0300)]
English locale String.format

7 months agoslightly lighter yellow accent
Damyan Ivanov [Sun, 28 Apr 2019 19:27:35 +0000 (22:27 +0300)]
slightly lighter yellow accent

was nearly black

7 months agofix header items (acc name filter, retrieve progress) to use the profile theme colors
Damyan Ivanov [Sun, 28 Apr 2019 18:47:17 +0000 (21:47 +0300)]
fix header items (acc name filter, retrieve progress) to use the profile theme colors

by removing explicit pointer to the default theme

7 months agocopy constructor for MobileLedgerProfile
Damyan Ivanov [Sun, 28 Apr 2019 18:09:09 +0000 (21:09 +0300)]
copy constructor for MobileLedgerProfile

7 months agodrop unused field
Damyan Ivanov [Sun, 28 Apr 2019 18:07:33 +0000 (21:07 +0300)]
drop unused field

7 months agoSQLiteOpenHelper wrapper doesn't need to implement AutoCloseable
Damyan Ivanov [Sat, 27 Apr 2019 20:19:37 +0000 (23:19 +0300)]
SQLiteOpenHelper wrapper doesn't need to implement AutoCloseable

db life is hand-managed, opened at application start and shut down
on application termination

7 months agosilence some debug
Damyan Ivanov [Sat, 27 Apr 2019 20:18:10 +0000 (23:18 +0300)]
silence some debug

7 months agoO is the android version with app shortcuts
Damyan Ivanov [Sat, 27 Apr 2019 17:36:53 +0000 (20:36 +0300)]
O is the android version with app shortcuts

7 months agolocale-aware String.format
Damyan Ivanov [Sat, 27 Apr 2019 17:16:32 +0000 (20:16 +0300)]
locale-aware String.format

these are debugging things, the English locale should be fine

7 months agodrop unused commented-out code
Damyan Ivanov [Tue, 23 Apr 2019 00:53:54 +0000 (03:53 +0300)]
drop unused commented-out code

7 months agocorrect constant for vertival layout
Damyan Ivanov [Tue, 23 Apr 2019 00:52:34 +0000 (03:52 +0300)]
correct constant for vertival layout

7 months agodrop unused variable
Damyan Ivanov [Tue, 23 Apr 2019 00:52:20 +0000 (03:52 +0300)]
drop unused variable

7 months agowhitespace
Damyan Ivanov [Sat, 20 Apr 2019 07:43:38 +0000 (10:43 +0300)]
whitespace

7 months agodrop dummy bottom-list entries and intercept draw up/down to hide/show the Add FAB
Damyan Ivanov [Sat, 20 Apr 2019 07:41:51 +0000 (10:41 +0300)]
drop dummy bottom-list entries and intercept draw up/down to hide/show the Add FAB

7 months agodrop redundant setting of swiper color
Damyan Ivanov [Fri, 19 Apr 2019 21:46:28 +0000 (00:46 +0300)]
drop redundant setting of swiper color

the LiveData thing takes care of the initial setting

7 months agoprofile list: don't hide the collapse arrow when editting is enabled
Damyan Ivanov [Fri, 19 Apr 2019 20:37:10 +0000 (23:37 +0300)]
profile list: don't hide the collapse arrow when editting is enabled

clicking on the 'Profiles' row still collapses the list, so the missing
arrow is just confusing

7 months agodrop dead code
Damyan Ivanov [Fri, 19 Apr 2019 20:27:28 +0000 (23:27 +0300)]
drop dead code

7 months agooverride the weaker access warning
Damyan Ivanov [Fri, 19 Apr 2019 17:25:53 +0000 (20:25 +0300)]
override the weaker access warning

the similar method accepting profile object is public and is used in
the wild, so maybe this one would also be used one day

7 months agoname variable keeping auto-closed resource 'ignored'
Damyan Ivanov [Fri, 19 Apr 2019 17:24:39 +0000 (20:24 +0300)]
name variable keeping auto-closed resource 'ignored'

7 months agowhitespace
Damyan Ivanov [Fri, 19 Apr 2019 17:20:04 +0000 (20:20 +0300)]
whitespace

7 months agolimit method visibility to the used level
Damyan Ivanov [Fri, 19 Apr 2019 17:19:55 +0000 (20:19 +0300)]
limit method visibility to the used level

7 months agounnecessary cast
Damyan Ivanov [Fri, 19 Apr 2019 17:18:49 +0000 (20:18 +0300)]
unnecessary cast

7 months agoname intentionally unused variable as 'ignored'
Damyan Ivanov [Fri, 19 Apr 2019 17:16:48 +0000 (20:16 +0300)]
name intentionally unused variable as 'ignored'

it is used to hold the auto-closed resource

7 months agomissing not-null annotation
Damyan Ivanov [Fri, 19 Apr 2019 17:15:07 +0000 (20:15 +0300)]
missing not-null annotation

7 months agoremove unused code
Damyan Ivanov [Fri, 19 Apr 2019 17:14:52 +0000 (20:14 +0300)]
remove unused code

7 months agocomment-out the account list options menu
Damyan Ivanov [Fri, 19 Apr 2019 17:03:00 +0000 (20:03 +0300)]
comment-out the account list options menu

not used since long, not sure if the account hiding will be
resurrected at some point

7 months agohide the options drawer item
Damyan Ivanov [Fri, 19 Apr 2019 16:58:38 +0000 (19:58 +0300)]
hide the options drawer item

not really used, only takes up space and ands confusion

7 months agocollapseProfileList(): short-cut animations if the list was already collapsed
Damyan Ivanov [Fri, 19 Apr 2019 16:39:36 +0000 (19:39 +0300)]
collapseProfileList(): short-cut animations if the list was already collapsed

7 months agowhitespace
Damyan Ivanov [Fri, 19 Apr 2019 15:45:46 +0000 (18:45 +0300)]
whitespace

7 months agomore animations when collapsing profile list and when starting/editting list edit
Damyan Ivanov [Fri, 19 Apr 2019 15:45:26 +0000 (18:45 +0300)]
more animations when collapsing profile list and when starting/editting list edit

7 months agodisable profile switching while the list is being edited/rearranged
Damyan Ivanov [Fri, 19 Apr 2019 15:26:18 +0000 (18:26 +0300)]
disable profile switching while the list is being edited/rearranged

7 months agoprofile list: react on clicking on different parts of the profile row
Damyan Ivanov [Fri, 19 Apr 2019 15:18:43 +0000 (18:18 +0300)]
profile list: react on clicking on different parts of the profile row

notable the color tag and the space on the left

7 months agorevert unintentional change in text color
Damyan Ivanov [Tue, 16 Apr 2019 18:32:37 +0000 (21:32 +0300)]
revert unintentional change in text color

broken with bb066b2d8c34d685fab6d43690dbf129fcf42cb6

7 months agoavoid multiple acc/trn list updating when switching profiles
Damyan Ivanov [Tue, 16 Apr 2019 18:29:26 +0000 (21:29 +0300)]
avoid multiple acc/trn list updating when switching profiles

7 months agospare a transaction list reload upon changing of the account name filter from ""...
Damyan Ivanov [Tue, 16 Apr 2019 18:26:12 +0000 (21:26 +0300)]
spare a transaction list reload upon changing of the account name filter from "" to null

7 months agowrap Log.d calls, skipping them on non-debug builds
Damyan Ivanov [Tue, 16 Apr 2019 18:23:00 +0000 (21:23 +0300)]
wrap Log.d calls, skipping them on non-debug builds

pro-guard doesn't seem to work and has some scary warnings for the
json parsing library

7 months agomissing not-null annotation
Damyan Ivanov [Tue, 16 Apr 2019 18:19:50 +0000 (21:19 +0300)]
missing not-null annotation

7 months agoprivate field
Damyan Ivanov [Tue, 16 Apr 2019 18:16:41 +0000 (21:16 +0300)]
private field

7 months agonullability annotations
Damyan Ivanov [Tue, 16 Apr 2019 18:13:31 +0000 (21:13 +0300)]
nullability annotations

7 months agowhitespace
Damyan Ivanov [Tue, 16 Apr 2019 18:10:23 +0000 (21:10 +0300)]
whitespace

7 months agomigrate backgroundTaskCount to an atomic counter and "running" boolean LiveData
Damyan Ivanov [Tue, 16 Apr 2019 18:07:10 +0000 (21:07 +0300)]
migrate backgroundTaskCount to an atomic counter and "running" boolean LiveData

7 months agolambdas
Damyan Ivanov [Tue, 16 Apr 2019 18:03:51 +0000 (21:03 +0300)]
lambdas

7 months agoadd missing annotations
Damyan Ivanov [Tue, 16 Apr 2019 18:00:41 +0000 (21:00 +0300)]
add missing annotations

7 months agounused variable
Damyan Ivanov [Tue, 16 Apr 2019 17:55:55 +0000 (20:55 +0300)]
unused variable

7 months agomigrate account name filter to LiveData
Damyan Ivanov [Tue, 16 Apr 2019 17:52:43 +0000 (20:52 +0300)]
migrate account name filter to LiveData

7 months agomigrate themeWatch to LiveData
Damyan Ivanov [Tue, 16 Apr 2019 17:49:34 +0000 (20:49 +0300)]
migrate themeWatch to LiveData

7 months agoforce profile observer notification when current profile is saved
Damyan Ivanov [Tue, 16 Apr 2019 17:46:25 +0000 (20:46 +0300)]
force profile observer notification when current profile is saved

to reflect possible changes in color/name/url

7 months agodrop unused code
Damyan Ivanov [Tue, 16 Apr 2019 17:43:16 +0000 (20:43 +0300)]
drop unused code

7 months agocolor selector: show selected sector (implement drawMarker)
Damyan Ivanov [Tue, 16 Apr 2019 17:40:07 +0000 (20:40 +0300)]
color selector: show selected sector (implement drawMarker)

7 months agorework theme color spectrum to match the holy grail violet and get a darker yellow...
Damyan Ivanov [Tue, 16 Apr 2019 17:36:54 +0000 (20:36 +0300)]
rework theme color spectrum to match the holy grail violet and get a darker yellow with readable white text

also, automate theme XML update

7 months agoadd theme list start/end markers to aid automatic generation
Damyan Ivanov [Tue, 16 Apr 2019 17:33:42 +0000 (20:33 +0300)]
add theme list start/end markers to aid automatic generation

7 months agonote wanted primary color in theme list
Damyan Ivanov [Tue, 16 Apr 2019 17:27:33 +0000 (20:27 +0300)]
note wanted primary color in theme list

7 months agodrop unused resource definition
Damyan Ivanov [Thu, 18 Apr 2019 17:39:28 +0000 (20:39 +0300)]
drop unused resource definition

7 months agowhitepspace
Damyan Ivanov [Tue, 16 Apr 2019 16:51:48 +0000 (19:51 +0300)]
whitepspace

7 months agomigrate lastUpdatedate to LiveData
Damyan Ivanov [Tue, 16 Apr 2019 16:51:30 +0000 (19:51 +0300)]
migrate lastUpdatedate to LiveData

re-inventing a pissibly brooken wheel doesn't sound like a good idea

7 months agobg-BG translation for descriptions and feature graphic
Damyan Ivanov [Tue, 16 Apr 2019 03:21:53 +0000 (06:21 +0300)]
bg-BG translation for descriptions and feature graphic

7 months agoadjust feature graphic to better fit into f-droid client's interface
Damyan Ivanov [Tue, 16 Apr 2019 03:21:38 +0000 (06:21 +0300)]
adjust feature graphic to better fit into f-droid client's interface

7 months agoadd more "air" in the app icon, decreasing the image within the filled frame
Damyan Ivanov [Tue, 16 Apr 2019 03:15:06 +0000 (06:15 +0300)]
add more "air" in the app icon, decreasing the image within the filled frame

7 months agoprepare 0.9.5/25 release v0.9.5
Damyan Ivanov [Sat, 13 Apr 2019 20:36:25 +0000 (20:36 +0000)]
prepare 0.9.5/25 release

7 months agomFragment may be null here
Damyan Ivanov [Sat, 13 Apr 2019 20:01:19 +0000 (23:01 +0300)]
mFragment may be null here

happened on 5.1.1

7 months agouse the standard "add" icon for the new transaction FAB
Damyan Ivanov [Sat, 13 Apr 2019 19:58:39 +0000 (22:58 +0300)]
use the standard "add" icon for the new transaction FAB

the thick plus was a bit out of place

7 months agofix ring placement in the color selector dialog
Damyan Ivanov [Sat, 13 Apr 2019 19:57:16 +0000 (22:57 +0300)]
fix ring placement in the color selector dialog

worked fine on 7.1, but was empty on 5.1

7 months agomove two vector icons in anydpi directory
Damyan Ivanov [Sat, 13 Apr 2019 18:45:28 +0000 (21:45 +0300)]
move two vector icons in anydpi directory

7 months agoimprovement in the color selection UI
Damyan Ivanov [Sat, 13 Apr 2019 18:20:29 +0000 (21:20 +0300)]
improvement in the color selection UI

keep initial and current colors separately. these are two different things
initial is the current profile color, current is the currently selected
color in the color selector, also used by the color selector icon

7 months agoprepare 0.9.4/24 release v0.9.4
Damyan Ivanov [Sat, 13 Apr 2019 14:32:35 +0000 (14:32 +0000)]
prepare 0.9.4/24 release

7 months agofix first run experience
Damyan Ivanov [Fri, 12 Apr 2019 15:11:08 +0000 (18:11 +0300)]
fix first run experience

hide the no profiles screen and show the main screen when the
first profile is created

properly trigger a data retrieval operation
also when the data is stale

7 months agowhitespace
Damyan Ivanov [Fri, 12 Apr 2019 15:09:38 +0000 (18:09 +0300)]
whitespace

7 months agodeveloper menu item for wiping all local profile data
Damyan Ivanov [Fri, 12 Apr 2019 15:08:05 +0000 (18:08 +0300)]
developer menu item for wiping all local profile data

7 months agoa bit of padding on the no profiles screen
Damyan Ivanov [Fri, 12 Apr 2019 14:57:24 +0000 (17:57 +0300)]
a bit of padding on the no profiles screen

7 months agohook profile list expansion/collapsing on tap at runtime
Damyan Ivanov [Fri, 12 Apr 2019 14:05:21 +0000 (17:05 +0300)]
hook profile list expansion/collapsing on tap at runtime

seems to fail on older devices otherwise

7 months agoStop trying to create app shortcuts on pre 7.1 devices, fixing a crash
Damyan Ivanov [Fri, 12 Apr 2019 14:04:04 +0000 (17:04 +0300)]
Stop trying to create app shortcuts on pre 7.1 devices, fixing a crash

7 months agoremove unused code
Damyan Ivanov [Fri, 12 Apr 2019 14:03:21 +0000 (17:03 +0300)]
remove unused code

7 months agobump matching transaction limit to 150
Damyan Ivanov [Wed, 10 Apr 2019 21:00:35 +0000 (00:00 +0300)]
bump matching transaction limit to 150

for when some deep histiry is changed

7 months agoupgrade some libraries
Damyan Ivanov [Wed, 10 Apr 2019 20:59:56 +0000 (23:59 +0300)]
upgrade some libraries

7 months agobump gradle version to 3.3.2
Damyan Ivanov [Wed, 10 Apr 2019 20:13:00 +0000 (23:13 +0300)]
bump gradle version to 3.3.2

7 months agoprepare 0.9.3/23 rlease v0.9.3
Damyan Ivanov [Wed, 10 Apr 2019 16:21:30 +0000 (19:21 +0300)]
prepare 0.9.3/23 rlease

7 months agofixed last couple of glitchs when adding transaction via an app shortcut with the...
Damyan Ivanov [Wed, 10 Apr 2019 16:04:27 +0000 (19:04 +0300)]
fixed last couple of glitchs when adding transaction via an app shortcut with the main app not running

7 months agoprepare 0.9.2 (22) release v0.9.2
Damyan Ivanov [Mon, 8 Apr 2019 18:29:45 +0000 (18:29 +0000)]
prepare 0.9.2 (22) release

7 months agomissing word in 0.9.1 change log
Damyan Ivanov [Mon, 8 Apr 2019 18:29:24 +0000 (18:29 +0000)]
missing word in 0.9.1 change log

7 months agofix account name auto-completion in new transaction screen started via shortcut
Damyan Ivanov [Mon, 8 Apr 2019 18:10:40 +0000 (21:10 +0300)]
fix account name auto-completion in new transaction screen started via shortcut