adding a comment to the slow preview hackfix

This commit is contained in:
tibbi 2018-02-22 17:41:20 +01:00
parent 513c389658
commit 44fb913b0e
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
mSupportedPreviewSizes = mParameters!!.supportedPreviewSizes.sortedByDescending { it.width * it.height } mSupportedPreviewSizes = mParameters!!.supportedPreviewSizes.sortedByDescending { it.width * it.height }
refreshPreview() refreshPreview()
if ("Nexus 4".equals(Build.MODEL)) { // hackfix for slow photo preview, more info at https://github.com/SimpleMobileTools/Simple-Camera/issues/120
if (Build.MODEL == "Nexus 4") {
mParameters!!.setRecordingHint(true) mParameters!!.setRecordingHint(true)
} }