mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-07 23:48:41 +01:00
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…
x
Reference in New Issue
Block a user