From b0413fd75633a660d9d1015353d5ddc33cebd678 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 26 Dec 2016 22:36:27 +0100 Subject: [PATCH] properly initialize Autoplay setting --- .../com/simplemobiletools/gallery/activities/SettingsActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt index 27279d7a2..279f2d67b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt @@ -47,6 +47,7 @@ class SettingsActivity : SimpleActivity() { } private fun setupAutoplayVideos() { + settings_autoplay_videos.isChecked = config.autoplayVideos settings_autoplay_videos_holder.setOnClickListener { settings_autoplay_videos.toggle() config.autoplayVideos = settings_autoplay_videos.isChecked