hide the notes picker view when we are just customizing widget colors

This commit is contained in:
tibbi 2019-01-26 15:03:23 +01:00
parent a833eb5c0b
commit 3ebc3bce42
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ class WidgetConfigureActivity : SimpleActivity() {
mTextColor = config.widgetTextColor mTextColor = config.widgetTextColor
updateTextColor() updateTextColor()
mIsCustomizingColors = intent.extras?.getBoolean(IS_CUSTOMIZING_COLORS) ?: false mIsCustomizingColors = intent.extras?.getBoolean(IS_CUSTOMIZING_COLORS) ?: false
notes_picker_holder.beVisibleIf(!mIsCustomizingColors)
NotesHelper(this).getNotes { NotesHelper(this).getNotes {
mNotes = it mNotes = it
notes_picker_holder.beVisibleIf(mNotes.size > 1 && !mIsCustomizingColors) notes_picker_holder.beVisibleIf(mNotes.size > 1 && !mIsCustomizingColors)