chore(createEvent): Use consistent naming for button attrs

This commit is contained in:
Peter Vacho 2025-01-02 11:36:30 +01:00
parent d85b685407
commit 95c4211e08
Signed by: school
GPG key ID: 8CFC3837052871B4

View file

@ -50,7 +50,7 @@ class CreateEventActivity : AppCompatActivity() {
private lateinit var txtStartTime: TextInputEditText
private lateinit var txtEndTime: TextInputEditText
private lateinit var btnColorPicker: MaterialButton
private lateinit var addCategoryButton: ImageButton
private lateinit var btnAddCategory: ImageButton
private lateinit var btnCreateEvent: MaterialButton
private lateinit var btnClose: MaterialButton
private lateinit var categoryRecyclerView: RecyclerView
@ -96,7 +96,7 @@ class CreateEventActivity : AppCompatActivity() {
txtStartTime = findViewById(R.id.txtStartTime)
txtEndTime = findViewById(R.id.txtEndTime)
btnColorPicker = findViewById(R.id.btnColorPicker)
addCategoryButton = findViewById(R.id.btnAddCategory)
btnAddCategory = findViewById(R.id.btnAddCategory)
btnCreateEvent = findViewById(R.id.btnCreateEvent)
btnClose = findViewById(R.id.btnClose)
categoryViewSwitcher = findViewById(R.id.categoryViewSwitcher)
@ -147,7 +147,7 @@ class CreateEventActivity : AppCompatActivity() {
}
}
addCategoryButton.setOnClickListener { addCategory() }
btnAddCategory.setOnClickListener { addCategory() }
btnColorPicker.setOnClickListener { openColorPickerDialog() }
btnCreateEvent.setOnClickListener { createEvent() }
btnClose.setOnClickListener { finish() }