Markus Fisch
3fe0f50289
Advance version number to 1.32.1
2020-07-04 15:28:44 +02:00
Markus Fisch
e86cf9d2cc
Remove ROI when handle is dragged to screen corner
...
As an alternative way to get rid of the ROI.
2020-07-04 15:15:32 +02:00
Markus Fisch
4f1482d2c9
Restrict ROI calculation to screen space
...
CameraView.previewRect may be larger than the screen (and thus as
the DetectorView which is at most as big as the screen).
If previewRect is larger, its left and/or top coordinate will be
negative which must then be clamped to the screen/DetectorView.
2020-07-04 14:26:21 +02:00
Markus Fisch
c42ad7dbea
Set ANDROID_NDK_HOME to nothing in gradlew
...
This is quite a hack to ensure this app builds *without* the NDK
because using the NDK will produce broken builds for Android 6.
For details see:
https://github.com/markusfisch/BinaryEye/issues/111
Unfortunately, it's (currently) not possible to configure Gradle
to simply ignore the NDK. `nkd.dir` cannot be set to nothing or
an invalid value.
2020-07-04 14:09:57 +02:00
Markus Fisch
fa3cc8c408
Remove extra action item to create bar code
...
Since the FAB's now always above the keyboard, there's no
need for an extra action item.
2020-06-29 19:47:27 +02:00
Markus Fisch
e4863bad4c
Keep soft keyboard from repositioning the layout
...
Only important for the EncodingFragment.
2020-06-29 19:46:52 +02:00
Markus Fisch
484bbbc997
Add changelog for latest version for f-droid
2020-06-23 21:38:07 +02:00
Markus Fisch
565643f19e
Advance version number to 1.32.0
2020-06-23 21:31:37 +02:00
Markus Fisch
4c92045563
Clean up permission handling
2020-06-23 21:12:38 +02:00
Markus Fisch
7116aa7278
Add an action to remove a scan from result view
...
So there's no need for a long tap to remove individual scans.
2020-06-23 21:10:21 +02:00
Markus Fisch
860e867ad4
Fix restoring crop handle position
2020-06-23 16:57:16 +02:00
Markus Fisch
3b509cd09c
Make tests fail if there are no/wrong samples
2020-06-22 14:54:53 +02:00
Markus Fisch
51ec228fd8
Remove unused quantities from translations
2020-06-22 14:35:48 +02:00
Markus Fisch
9d1dec146d
Add bulk mode
...
Scan continuously to add items to the history (if enabled)
instead of showing the result screen.
2020-06-22 14:30:51 +02:00
Markus Fisch
7bd9fe36fe
Handle storing/restoring crop handle like zoom
2020-06-22 13:21:40 +02:00
Markus Fisch
85dba0604c
Make ROI handle position permanent
...
So a user doesn't have to restore it every time.
2020-06-22 11:17:38 +02:00
Markus Fisch
56c70f5974
Make default ROI bigger and always a square
2020-06-22 10:27:31 +02:00
Markus Fisch
098b7740a0
Give ROI handle precedence over other controls
...
Because it can easily overlap with other controls and would
then be inaccessible.
2020-06-22 10:19:42 +02:00
Markus Fisch
7d92481fa6
Update ROI immediately when handle is tapped
2020-06-22 10:09:18 +02:00
zmni
2e285a5b1d
Update Indonesian translation ( #123 )
2020-06-21 16:36:45 +02:00
Markus Fisch
ad25c4681f
Calculate default ROI according to orientation
...
So it's probably a better fit.
2020-06-18 17:08:36 +02:00
Markus Fisch
c00c87ceca
Add missing changelog files for f-droid
2020-06-18 09:55:08 +02:00
Markus Fisch
e001a92870
Run detection in pick activity in background too
...
Because the TRY_HARDER flag is always set when scanning still
images, ZXing may take quite some time on slow devices. So it's
better to run it in a background thread.
2020-06-15 16:53:03 +02:00
Markus Fisch
7a32b00e1f
Add a menu item to export generated barcode as SVG
...
And use clear icons for PNG and SVG export.
2020-06-11 16:04:00 +02:00
Markus Fisch
50cedf782d
Automatically convert JPEG test samples to YUV
...
And convert the existing test samples from YUV to JPEG.
JPEGs are much smaller and it's much easier to work with them.
2020-06-10 14:28:31 +02:00
Markus Fisch
fb0d22198f
Refactor rotator to just rotate
...
To match the intrinsic names.
Also move the code into the same namespace as Processor so
we don't need the explicit import.
2020-06-09 15:20:33 +02:00
Markus Fisch
af528df448
Advance version number to 1.31.0
2020-06-07 16:19:23 +02:00
Markus Fisch
a9b5771d57
Fix initializing preprocessor for device tests
2020-06-07 16:19:08 +02:00
Markus Fisch
a161e8fc0f
Remove app name from polish translation
...
Because the app name isn't part of the default locale but the
same for all languages. Lint will fail otherwise.
2020-06-07 16:07:54 +02:00
Markus Fisch
ec17d07695
Reset ROI when handle snaps back in place
...
And make sure ROI dimensions are never smaller than 4.
2020-06-07 15:51:53 +02:00
Karol Kosek
be2fc2f559
Add Polish translation
2020-06-07 15:19:00 +02:00
Markus Fisch
de3aa752ff
Refactor data namespace to database
...
It's better to be explicit.
2020-06-04 09:19:50 +02:00
Markus Fisch
411cbb243f
Clean up app initialization
...
This got a bit mixed up by all the special RenderScript handling.
2020-06-04 09:13:33 +02:00
Markus Fisch
f76c1521fe
Stop detection when ROI is modified
...
Avoids accidently detecting a barcode while a user is about
to change the region of interest.
2020-06-03 22:49:01 +02:00
Markus Fisch
9b9224b100
Optimize crop button drawable with avocado
2020-06-03 22:39:42 +02:00
Markus Fisch
62d3fd7e94
Advance version number to 1.30.1
2020-06-02 21:48:56 +02:00
Markus Fisch
acdac4ca30
Improve german translation for ROI handle setting
2020-06-02 17:36:19 +02:00
Markus Fisch
221cf11576
Convert ROI handle positions to integer points
...
Because they're always discrete values and can never be inbetween.
Also, calling `drawBitmap()` with float values can lead to slightly
distorted renderings because the image is interpolated between
pixels then.
So let's just avoid this by using integers.
2020-06-02 16:04:39 +02:00
Markus Fisch
d34fceb48f
Move ROI button back in place if ROI is too small
...
It's probably better to restore the original situation than
having the button stay where it is.
Also clean up DetectorView a bit and refactor some variables.
2020-06-02 09:59:18 +02:00
Markus Fisch
4cc4cef4ca
Show plus in FAB if flash is not available
...
So it doesn't look awkward when a device doesn't have a flash.
2020-06-01 22:49:25 +02:00
Markus Fisch
969ffd3d0a
Move ROI button above FAB
...
Looks tidier.
2020-06-01 22:48:42 +02:00
Markus Fisch
81a505c752
Refactor Candidates to Dots
...
The dots aren't just candidates but may already be result points
so this name doesn't really fit.
2020-06-01 20:04:06 +02:00
Markus Fisch
eafcf0dba6
Rename ic_crop_handle to button_crop
...
It's not an icon but a button.
2020-06-01 19:58:29 +02:00
zmni
0539468d3d
Update Indonesian translation
2020-06-01 19:48:09 +02:00
Markus Fisch
5e9361ac77
Keep ROI over orientation changes
2020-06-01 10:44:48 +02:00
Markus Fisch
54fb31d6a5
Show a default ROI when button is just tapped
...
Nobody knows the button is a handle that can be used.
So the natural thing to do is to tap on it which should do the
next best thing and that is showing a default region of interest.
Maybe the button should be positioned above the fab and have a
different color when inactive.
2020-05-31 22:11:43 +02:00
Markus Fisch
0f7da91e77
Draw round corners for ROI box
...
Looks much better.
2020-05-31 19:29:00 +02:00
Markus Fisch
13bbb3e435
Update build tools and gradle wrapper
2020-05-31 13:15:46 +02:00
Markus Fisch
e318385032
Advance version number to 1.30.0
2020-05-30 14:42:17 +02:00
Markus Fisch
9b1445efb5
Draw a dotted rectangle around ROI below Kitkat
...
Because Canvas.clipRect() doesn't work very well below
Kitkat.
2020-05-30 14:32:35 +02:00