build/fix-camera2-legacy.patch
2022-09-25 14:44:19 +02:00

23 lines
1.1 KiB
Diff

From 94afc13b04146a3adc77378b0022216b27f82ea0 Mon Sep 17 00:00:00 2001
From: nyyu <mail@nyyu.dev>
Date: Sat, 3 Sep 2022 11:38:43 +0200
Subject: [PATCH] Camera2: Disable CaptureModule for legacy device
---
.../camera/one/config/OneCameraFeatureConfigCreator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/com/android/camera/one/config/OneCameraFeatureConfigCreator.java b/src/com/android/camera/one/config/OneCameraFeatureConfigCreator.java
index dc7f9003f7..474494082e 100644
--- a/src/com/android/camera/one/config/OneCameraFeatureConfigCreator.java
+++ b/src/com/android/camera/one/config/OneCameraFeatureConfigCreator.java
@@ -41,7 +41,7 @@ public class OneCameraFeatureConfigCreator {
public static OneCameraFeatureConfig createDefault(ContentResolver contentResolver,
MemoryManager memoryManager) {
// Enable CaptureModule on all M devices.
- boolean useCaptureModule = true;
+ boolean useCaptureModule = false;
Log.i(TAG, "CaptureModule? " + useCaptureModule);
// HDR+ has multiple levels of support.