update all-day switch at editing events instantly, without animation

This commit is contained in:
tibbi 2019-03-11 23:46:23 +01:00
parent e3d34a9737
commit 949105dce9
1 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,7 @@ import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.models.RadioItem import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.commons.views.MyTextView import com.simplemobiletools.commons.views.MyTextView
import kotlinx.android.synthetic.main.activity_event.* import kotlinx.android.synthetic.main.activity_event.*
import kotlinx.android.synthetic.main.activity_event.view.*
import org.joda.time.DateTime import org.joda.time.DateTime
import java.util.* import java.util.*
import java.util.regex.Pattern import java.util.regex.Pattern
@ -172,9 +173,9 @@ class EventActivity : SimpleActivity() {
} }
event_type_holder.setOnClickListener { showEventTypeDialog() } event_type_holder.setOnClickListener { showEventTypeDialog() }
event_all_day.apply {
if (mEvent.flags and FLAG_ALL_DAY != 0) { isChecked = mEvent.flags and FLAG_ALL_DAY != 0
event_all_day.toggle() jumpDrawablesToCurrentState()
} }
updateTextColors(event_scrollview) updateTextColors(event_scrollview)