Prechádzať zdrojové kódy

Any camera (front/back) is enough for scanning QR or taking an image

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 4 rokov pred
rodič
commit
06a7800eb1

+ 1 - 1
src/main/java/com/nextcloud/client/device/DeviceInfo.kt

@@ -32,7 +32,7 @@ class DeviceInfo {
     val androidVersion = Build.VERSION.RELEASE
 
     fun hasCamera(context: Context): Boolean {
-        return context.packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)
+        return context.packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)
     }
 
     fun editorSupported(): Boolean {