소스 검색

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

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 4 년 전
부모
커밋
06a7800eb1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/nextcloud/client/device/DeviceInfo.kt

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

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