Add braces to if statements
This commit is contained in:
parent
8cc2c85f44
commit
b5bba45d56
|
@ -56,8 +56,9 @@ class SelectEventColorDialog(val activity: Activity, val eventType: EventType, v
|
|||
}
|
||||
|
||||
private fun viewClicked(color: Int) {
|
||||
if (!wasInit)
|
||||
if (!wasInit) {
|
||||
return
|
||||
}
|
||||
|
||||
callback(color)
|
||||
dialog?.dismiss()
|
||||
|
|
|
@ -63,8 +63,9 @@ class SelectEventTypeColorDialog(val activity: Activity, val eventType: EventTyp
|
|||
}
|
||||
|
||||
private fun viewClicked(color: Int) {
|
||||
if (!wasInit)
|
||||
if (!wasInit) {
|
||||
return
|
||||
}
|
||||
|
||||
callback(color)
|
||||
dialog?.dismiss()
|
||||
|
|
Loading…
Reference in New Issue