Skip to content

Commit 1a1b747

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

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

1254+
if (!enableEIS || !isVideoMode) {
1255+
previewBuilder.setPreviewStabilizationEnabled(false)
1256+
}
1257+
12541258
preview = previewBuilder.build().also {
12551259
useCasesList.add(it)
12561260
it.setSurfaceProvider(mActivity.previewView.surfaceProvider)

0 commit comments

Comments
 (0)