]> git.ktnx.net Git - mobile-ledger.git/commitdiff
move sample text scanning to the template activity
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 21 Feb 2021 10:30:25 +0000 (12:30 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 1 Mar 2021 06:00:42 +0000 (06:00 +0000)
the initial idea was to have an abstract fragment class that could
handle the details about launching the QR scanner and accept the result.

however, the right place to do this is the activity, because only an
activity can receive the scan result, and launch the QR app.

Before, this was worked around by a LiveData thing that the activity
observed, and which the "Scan" buttons triggered. This has a nasty side
effect that the LiveData is triggered whenever the activity is
re-instantiated


No differences found