Minor code improvement

This commit is contained in:
Naveen 2023-09-04 14:26:50 +05:30
parent 279bec94cf
commit a4114bd501
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -681,7 +681,7 @@ class TaskActivity : SimpleActivity() {
private fun updateReminder2Text() {
binding.taskReminder2.apply {
beGoneIf(binding.taskReminder2.isGone() && mReminder1Minutes == REMINDER_OFF)
beGoneIf(isGone() && mReminder1Minutes == REMINDER_OFF)
if (mReminder2Minutes == REMINDER_OFF) {
text = resources.getString(R.string.add_another_reminder)
alpha = 0.4f
@ -694,7 +694,7 @@ class TaskActivity : SimpleActivity() {
private fun updateReminder3Text() {
binding.taskReminder3.apply {
beGoneIf(binding.taskReminder3.isGone() && (mReminder2Minutes == REMINDER_OFF || mReminder1Minutes == REMINDER_OFF))
beGoneIf(isGone() && (mReminder2Minutes == REMINDER_OFF || mReminder1Minutes == REMINDER_OFF))
if (mReminder3Minutes == REMINDER_OFF) {
text = resources.getString(R.string.add_another_reminder)
alpha = 0.4f