From 02afd5430964c774439e5c0965123c2f110b6540 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 3 Oct 2021 19:32:45 +0200 Subject: [PATCH] allow fast trimming in the video editor, should fix some glitches --- .../gallery/pro/activities/NewVideoEditActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt b/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt index 18eec7fbe..1e0a3fa9b 100644 --- a/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt +++ b/app/src/proprietary/kotlin/com/simplemobiletools/gallery/pro/activities/NewVideoEditActivity.kt @@ -222,7 +222,7 @@ class NewVideoEditActivity : SimpleActivity() { } private fun openEditor(inputVideo: Uri) { - val settingsList = createPesdkSettingsList() + val settingsList = createVesdkSettingsList() settingsList.configure { it.source = inputVideo @@ -235,7 +235,7 @@ class NewVideoEditActivity : SimpleActivity() { .startActivityForResult(this, VESDK_EDIT_VIDEO) } - private fun createPesdkSettingsList(): VideoEditorSettingsList { + private fun createVesdkSettingsList(): VideoEditorSettingsList { val settingsList = VideoEditorSettingsList().apply { configure { it.setFilterList(FilterPackBasic.getFilterPack()) @@ -288,6 +288,7 @@ class NewVideoEditActivity : SimpleActivity() { getSettingsModel(UiConfigTheme::class.java).theme = R.style.Imgly_Theme_NoFullscreen configure { + it.allowFastTrim = true it.allowOrientationMatrixMetadata = true it.setOutputToTemp() it.outputMode = OutputMode.EXPORT_IF_NECESSARY