File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
app/src/main/kotlin/com/simplemobiletools/notes/pro/activities Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,18 @@ import android.content.Intent
44import android.os.Bundle
55import android.view.Menu
66import com.simplemobiletools.commons.dialogs.RadioGroupDialog
7+ import com.simplemobiletools.commons.extensions.beGone
78import com.simplemobiletools.commons.extensions.beVisibleIf
89import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor
910import com.simplemobiletools.commons.extensions.updateTextColors
1011import com.simplemobiletools.commons.helpers.IS_CUSTOMIZING_COLORS
12+ import com.simplemobiletools.commons.helpers.ensureBackgroundThread
1113import com.simplemobiletools.commons.helpers.isOreoPlus
1214import com.simplemobiletools.commons.models.RadioItem
1315import com.simplemobiletools.notes.pro.R
1416import com.simplemobiletools.notes.pro.extensions.config
1517import com.simplemobiletools.notes.pro.extensions.updateWidgets
18+ import com.simplemobiletools.notes.pro.extensions.widgetsDB
1619import com.simplemobiletools.notes.pro.helpers.*
1720import kotlinx.android.synthetic.main.activity_settings.*
1821import java.util.*
@@ -203,6 +206,14 @@ class SettingsActivity : SimpleActivity() {
203206 startActivity(this )
204207 }
205208 }
209+
210+ ensureBackgroundThread {
211+ if (widgetsDB.getWidgets().size > 1 ) {
212+ arrayListOf (widgets_divider, widgets_label, settings_customize_widget_colors_holder).forEach {
213+ it.beGone()
214+ }
215+ }
216+ }
206217 }
207218
208219 private fun setupIncognitoMode () {
You can’t perform that action at this time.
0 commit comments