Skip to content

Commit 493806c

Browse files
committed
force disable EIS when not enabling it
1 parent f4f395d commit 493806c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app/src/main/java/app/grapheneos/camera/CamConfig.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,12 @@ class CamConfig(private val mActivity: MainActivity) {
12511251
ResolutionSelector.Builder().setAspectRatioStrategy(aspectRatioStrategy).build()
12521252
)
12531253

1254+
// Pixels and potentially other devices enable EIS by default, which reduces the field of
1255+
// view and image quality for image capture if it's not explicitly disabled
1256+
if (!enableEIS || !isVideoMode) {
1257+
previewBuilder.setPreviewStabilizationEnabled(false)
1258+
}
1259+
12541260
preview = previewBuilder.build().also {
12551261
useCasesList.add(it)
12561262
it.setSurfaceProvider(mActivity.previewView.surfaceProvider)

0 commit comments

Comments
 (0)