Androidx SplashScreen compat library would require minSdk 21,
make the app unnecessarily larger and Android 12 automatically
replaces our custom splash screen anyway, which is exactly what
we want. So there is no reason to complain.
The migration guide says about our kind of splash screen:
> If your existing splash screen is implemented using a custom
> theme that overrides android:windowBackground, the system replaces
> your custom splash screen with a default Android system splash
> screen on Android 12 and higher (which may not be your app’s
> intended experience).
Source:
https://developer.android.com/guide/topics/ui/splash-screen/migrate
This is not only the intended but desired experience for this app.
To silence the Range lint error.
getColumnIndex() can return -1 which isn't suitable for
Cursor.get[Blob|Long|String]().
IMHO this is a quite useless, maybe even dangerous, lint error.
This kind of error should only happen in development where I
want to break things to see the problem. Now, using a wrong
name or asking for a non-existent column doesn't result in an
exception and is masking the problem.
Android 12 requires apps that request ACCESS_FINE_LOCATION
to also request ACCESS_COARSE_LOCATION. But this app doesn't
request nor requires ACCESS_FINE_LOCATION above SDK 28.
So this is a false positive and we're ignoring it.
Hopefully, this will be fixed in future updates.
This way Binary Eye can also be used as a front-end to your own
website that deals with the scanned content directly.
This is of course the same as adding a URL for unknown content and
picking it from the dialog. However, this requires two taps and is
therefore more suitable for unusual use.
Can't use Rect.width()/.height() with negative left/top values
because these get cropped at 0/0 of course.
Before this commit, the cropped image was larger than it should be.
And center it with the FAB.
This should improve the usability because the slider should
now be a bit easier to grab. Also, it should interfere less
likely with gesture navigation.