diff --git a/app/build.gradle b/app/build.gradle index 2382c5fd2..0ddaaf12a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/YearFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/YearFragment.kt index 79bff328c..32d8c7bfb 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/YearFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/YearFragment.kt @@ -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() { diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/YearlyCalendarImpl.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/YearlyCalendarImpl.kt index ec9ac1cd6..58af67387 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/YearlyCalendarImpl.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/YearlyCalendarImpl.kt @@ -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) {