fixed a threading related crash

This commit is contained in:
tibbi 2023-01-11 15:33:53 +01:00
parent a9e531374f
commit 3c68956dae
3 changed files with 4 additions and 3 deletions

View File

@ -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'

View File

@ -159,8 +159,10 @@ class YearFragment : Fragment(), YearlyCalendar {
monthView.setEvents(events.get(i))
}
mView.top_value.post {
mView.top_value.text = mYear.toString()
}
}
fun printCurrentView() {
isPrintVersion = true

View File

@ -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) {