From cde70c40f67309baeb6737f2e3ab7e801adc407f Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 22 Jul 2019 11:47:59 +0200 Subject: [PATCH] ignore saved video positions at export/import --- .../gallery/pro/activities/SettingsActivity.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt index c1e278770..2e9cc0a84 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt @@ -615,9 +615,6 @@ class SettingsActivity : SimpleActivity() { put(FILE_LOADING_PRIORITY, config.fileLoadingPriority) put(AUTOPLAY_VIDEOS, config.autoplayVideos) put(REMEMBER_LAST_VIDEO_POSITION, config.rememberLastVideoPosition) - config.getAllLastVideoPositions().forEach { - put(it.key, it.value.toString()) - } put(LOOP_VIDEOS, config.loopVideos) put(OPEN_VIDEOS_ON_SEPARATE_SCREEN, config.openVideosOnSeparateScreen) put(ALLOW_VIDEO_GESTURES, config.allowVideoGestures) @@ -800,10 +797,6 @@ class SettingsActivity : SimpleActivity() { LAST_CONFLICT_RESOLUTION -> config.lastConflictResolution = value.toInt() LAST_CONFLICT_APPLY_TO_ALL -> config.lastConflictApplyToAll = value.toBoolean() } - - if (key.startsWith(LAST_VIDEO_POSITION_PREFIX)) { - config.saveLastVideoPosition(key, value as Int) - } } toast(if (configValues.size > 0) R.string.settings_imported_successfully else R.string.no_entries_for_importing)