Skip to content
Snippets Groups Projects
Commit 3127aa09 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Widgets: make the configuration icon visible by default

parent 95e1793d
No related branches found
No related tags found
1 merge request!1363New widgets
......@@ -158,7 +158,7 @@ class PreferencesWidgets : BasePreferenceFragment(), SharedPreferences.OnSharedP
}
"widget_show_configure" -> {
val newValue = sharedPreferences.getBoolean(key, false)
val newValue = sharedPreferences.getBoolean(key, true)
model.widget.value?.showConfigure = newValue
}
......
......@@ -67,7 +67,7 @@ class WidgetRepository(private val widgetDao: WidgetDao) {
}
suspend fun createNew(context: Context, appWidgetId: Int): Widget {
val widget = Widget(appWidgetId, 0, 0, 0, true, ContextCompat.getColor(context, R.color.black), ContextCompat.getColor(context, R.color.white), 10, 10, 100, false)
val widget = Widget(appWidgetId, 0, 0, 0, true, ContextCompat.getColor(context, R.color.black), ContextCompat.getColor(context, R.color.white), 10, 10, 100, true)
addWidget(widget)
return widget
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment