simplify the widget colorpicker dialogs

This commit is contained in:
tibbi 2016-12-14 19:43:35 +01:00
parent 533fdf8a6c
commit a1ed41944e
1 changed files with 4 additions and 8 deletions

View File

@ -99,7 +99,7 @@ class WidgetListConfigureActivity : AppCompatActivity() {
}
fun pickBackgroundColor() {
val dialog = AmbilWarnaDialog(this, mBgColorWithoutTransparency, object : AmbilWarnaDialog.OnAmbilWarnaListener {
AmbilWarnaDialog(this, mBgColorWithoutTransparency, object : AmbilWarnaDialog.OnAmbilWarnaListener {
override fun onCancel(dialog: AmbilWarnaDialog) {
}
@ -107,13 +107,11 @@ class WidgetListConfigureActivity : AppCompatActivity() {
mBgColorWithoutTransparency = color
updateBgColor()
}
})
dialog.show()
}).show()
}
fun pickTextColor() {
val dialog = AmbilWarnaDialog(this, mTextColor, object : AmbilWarnaDialog.OnAmbilWarnaListener {
AmbilWarnaDialog(this, mTextColor, object : AmbilWarnaDialog.OnAmbilWarnaListener {
override fun onCancel(dialog: AmbilWarnaDialog) {
}
@ -121,9 +119,7 @@ class WidgetListConfigureActivity : AppCompatActivity() {
mTextColorWithoutTransparency = color
updateTextColors()
}
})
dialog.show()
}).show()
}
private fun requestWidgetUpdate() {