fixed a threading related crash
This commit is contained in:
parent
a9e531374f
commit
3c68956dae
|
@ -70,7 +70,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:4e061a7681'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:62e035a322'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
|
|
|
@ -159,7 +159,9 @@ class YearFragment : Fragment(), YearlyCalendar {
|
|||
monthView.setEvents(events.get(i))
|
||||
}
|
||||
|
||||
mView.top_value.text = mYear.toString()
|
||||
mView.top_value.post {
|
||||
mView.top_value.text = mYear.toString()
|
||||
}
|
||||
}
|
||||
|
||||
fun printCurrentView() {
|
||||
|
|
|
@ -8,7 +8,6 @@ import com.simplemobiletools.calendar.pro.interfaces.YearlyCalendar
|
|||
import com.simplemobiletools.calendar.pro.models.DayYearly
|
||||
import com.simplemobiletools.calendar.pro.models.Event
|
||||
import org.joda.time.DateTime
|
||||
import java.util.*
|
||||
|
||||
class YearlyCalendarImpl(val callback: YearlyCalendar, val context: Context, val year: Int) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue