Commit Graph
187 Commits
Author SHA1 Message Date
Allan Nordhøy 03cf97cca7 Added self-referencing "about" tag 2018-10-20 03:22:17 +02:00
Allan Nordhøy a7204eb9d5 Norwegian Bokmål translation 2018-10-19 15:14:37 +02:00
Branden Archer 4c9bc911ad Update translations 2018-10-14 11:39:21 -07:00
Branden Archer 866eaea680 Correct log statement when entering barcode manually 2018-10-14 11:24:42 -07:00
Branden Archer 5619c1c003 Revert "Remove unneeded code"
The log statement here was misleading. This code is responsible for
receiving a barcode that a user typed in manually.

This reverts commit cafa09a86a.
2018-10-14 11:24:42 -07:00
Branden Archer 28018eb681 Update translations 2018-10-07 15:05:38 -07:00
Branden Archer 10e720de91 Add option to lock orientation state
This new option will control if the screen orientation
lock option is displayed or not. If set, the orientation lock
is forced and the unlock option is hidden.
2018-10-06 15:27:36 -07:00
Branden Archer 4de952ba2d Set rotation state in onCreate()
The menu creation need not change this state
2018-10-06 14:24:50 -07:00
Branden Archer c5de27abe3 Move orientation locking code to separate method 2018-10-06 14:24:05 -07:00
Branden Archer cafa09a86a Remove unneeded code
The IntentIntegrator parses out the result, so this
code is not necessary.
2018-09-18 10:53:16 -04:00
Branden Archer 6ee60687b6 Update translations 2018-09-17 10:03:05 -04:00
Branden Archer cad3b492a2 Sort card list case insensitive 2018-09-15 22:50:36 -04:00
Branden Archer 3b8e38001c Update translations 2018-07-27 23:18:38 -04:00
Branden Archer fbb0ab27ec Add Slovenian translations 2018-07-27 23:18:38 -04:00
Branden Archer 34c07800dd Configure brightening screen when display a barcode
When a barcode is displayed the screen's brightness is set to
the maximum, in an attempt to provide the best chance for a barcode
scanner to capture the barcode. However, it may not always
be desired to increase the brightness, for example when using
the app in low light.

This change adds a setting to control the screen brightening
behavior when a barcode is viewed.
2018-07-25 22:24:27 -04:00
Branden Archer 165f963f7d Update translations 2018-06-16 17:54:29 -04:00
Branden Archer ba6705b96e Add Greek translations 2018-06-13 09:19:38 -04:00
Branden Archer 39219531b4 Update translations 2018-05-12 11:33:16 -04:00
Branden Archer 048edf186e Fix Spanish translations
The wrong language was in this file.
2018-05-12 11:32:40 -04:00
Branden Archer 40871690d5 Update translations 2018-05-05 18:28:33 -04:00
Karol f59c485472 Add Polish translation 2018-03-22 22:48:20 +01:00
Branden Archer 036748ee56 Add additional layout options to support SDK<17
Google Play statistics show that the earliest Android version
in use which has installs for this app is 4.0.3, which is SDK 15.
This changes cleans up some layouts so that it will work on
SDK 15.
2018-03-11 23:11:51 -04:00
Branden Archer 79213aa3ec Catch case where barcode rendering runs into an OOM
There are still cases where the barcode could not be rendered
because the process runs out of its memory limit. To avoid
a crash, catch the failure and log it. The barcode will
not be displayed, but at least the app will not crash.
2018-03-04 13:10:12 -05:00
Branden Archer 0e2d725591 Disable beep upon successful barcode scan 2018-02-28 22:53:05 -05:00
Branden Archer 0820be3986 Reduce space used in header for card view
The landscape view left little room for the barcode and card ID
because the header took up a lot of space. Further, on smaller
phones it would take up a large portion of the screen.

This change reduces the header from 224dp to two action bar sizes
plus the size of the textview for the store name.
2018-02-19 23:21:12 -05:00
Branden Archer 3291185812 Render 1D barcodes with a larger width
For some reason when 1D barcodes are rendered in a smaller width,
they end up scrunched up and not using all available space.
As a result, they do not scale to the entire width of the screen.
In many cases the barcode is not scannable even in landscape.

To resolve this, render the 1D barcodes in a larger space. The space
is still bounded, to prevent OOMs on tablets or really
wide screen devices.
2018-02-18 23:14:51 -05:00
Branden Archer c9df3bd1d2 Redraw barcode when screen rotates 2018-02-18 23:14:51 -05:00
Branden Archer 4195d73c53 Update translations 2018-02-17 23:43:21 -05:00
Branden Archer 773d759ef5 Fix imports with missing colors 2018-02-17 22:37:10 -05:00
Branden Archer cbc51cfb73 Remove debug toast 2018-02-17 22:37:10 -05:00
Branden Archer 9951999ca4 Add settings for font sizes 2018-02-17 16:05:10 -05:00
Branden Archer a4bde722a6 Add config for text and background colors
This adds config options for the colors used for the store text
and background when displaying the store name in the single
card view or the thumbnail for the card list.
2018-02-17 15:50:32 -05:00
Branden Archer ff5e5d5833 Remove unused code handling adding a card
This case is handled in another acitivity now.
2018-02-12 15:13:23 -05:00
Branden Archer 685eaec8b5 Remove views which are no longer used 2018-02-12 15:13:23 -05:00
Branden Archer 13543ea9f6 Add quite space before and after barcode
This is to help barcode scanners determine where the end of
the barcode is.
2018-02-10 22:21:35 -05:00
Branden Archer 4d565b3b2f Update screenshots and wizard images 2018-02-10 13:37:17 -05:00
Branden Archer 27511a4ccd Make card id and note text selectable 2018-02-10 13:37:17 -05:00
Branden Archer 12440346fa Replace letter icon with store name 2018-02-10 13:37:17 -05:00
Branden Archer 870e4d0c4a Add note text to card view layout 2018-02-10 13:37:17 -05:00
Branden Archer 6e526de087 Auto-size card id text on card view layout 2018-02-10 13:37:16 -05:00
Branden Archer 891636b51f Use ConstraintLayout for card view layout
This way the size of the barcode can be 1/2 the screen.
2018-02-10 13:37:16 -05:00
Branden Archer dbbbd128dc Update intro and metadata graphics 2018-01-31 23:19:19 -05:00
Branden Archer 3275279501 Remove unnecessary casts from findViewById 2018-01-31 22:49:31 -05:00
Branden Archer 2f6516ffb9 Display note on separate line, omit card id on card list
The card id was of dubious value, because the main screen
is really for selecting the card. The note may have more value,
as it may specify info about the card.
2018-01-31 22:49:31 -05:00
Branden Archer 41c8b78275 Move store name text size to dimens.xml 2018-01-31 22:49:31 -05:00
Branden Archer 6ed96393d5 Change layout of single card view
This changes the layout when viewing a single card. The new layout
will have a colored area at the top which displays the first letter
of the company, and after that the barcode. The note will be displayed
on the card list screen and is presently omitted here.

As this layout is experimental, the layout for editing a card is
not yet updated. To achieve this the card viewing activity is split
into two separate classes, where one handles viewing and one handles
editing. When the view layout finalizes the edit icon can be updated
as time allows.
2018-01-31 22:49:31 -05:00
Branden Archer 1aef3f5253 Preserve float result from division
The arguments to drawText for x and y are float, but
dividing two integers truncates the result to an integer.
2018-01-28 14:21:53 -05:00
Branden Archer c97e80432f Support non-English letters for default card thumbnail 2018-01-28 09:49:21 -05:00
Branden Archer c6265eb9e3 Add generated icon for cards in card list
This add a thumbnail of a single letter for each card,
consisting of the first letter of the card and a
pastel background.

This was adapted from the andOTP project.
2018-01-27 20:05:57 -05:00
Branden Archer 935cd97f99 Improve layout for card list
This now includes an icon and emphasizes the store name.

This was adapted from the andOTP project.
2018-01-27 20:03:37 -05:00