disable showing photo preview after capturing on Android 5+

This commit is contained in:
tibbi 2018-06-08 12:06:51 +02:00
parent 55fbe8dd4b
commit 885df0ef88
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import com.simplemobiletools.commons.extensions.humanizePath
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.commons.helpers.LICENSE_GLIDE
import com.simplemobiletools.commons.helpers.LICENSE_LEAK_CANARY
import com.simplemobiletools.commons.helpers.isLollipopPlus
import com.simplemobiletools.commons.models.FAQItem
import com.simplemobiletools.commons.models.RadioItem
import kotlinx.android.synthetic.main.activity_settings.*
@ -105,6 +106,7 @@ class SettingsActivity : SimpleActivity() {
}
private fun setupShowPreview() {
settings_show_preview_holder.beVisibleIf(!isLollipopPlus())
settings_show_preview.isChecked = config.isShowPreviewEnabled
settings_show_preview_holder.setOnClickListener {
settings_show_preview.toggle()