0
0
mirror of https://github.com/markusfisch/BinaryEye.git synced 2024-09-20 12:02:17 +02:00

Only request ACCESS_FINE_LOCATION below Android Q

Not required to suggest a network for Android Q.
This commit is contained in:
Markus Fisch 2020-04-03 19:43:57 +02:00
parent c61db34d27
commit f31c1eee0e

View File

@ -231,6 +231,7 @@ class DecodeFragment : Fragment() {
private fun executeAction(content: ByteArray) {
if (activity != null && content.isNotEmpty()) {
if (action is WifiAction &&
Build.VERSION.SDK_INT < Build.VERSION_CODES.Q &&
!hasLocationPermission(activity)
) {
return