forked from github/wulkanowy-mirror
Display timetable header as HTML on dashboard tile (#1835)
This commit is contained in:
parent
d37de197fc
commit
426bee882c
@ -9,6 +9,7 @@ import android.os.Looper
|
|||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.constraintlayout.widget.ConstraintLayout
|
import androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
import androidx.core.text.parseAsHtml
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import androidx.core.view.updateLayoutParams
|
import androidx.core.view.updateLayoutParams
|
||||||
import androidx.core.view.updateMarginsRelative
|
import androidx.core.view.updateMarginsRelative
|
||||||
@ -563,7 +564,7 @@ class DashboardAdapter @Inject constructor() : RecyclerView.Adapter<RecyclerView
|
|||||||
) {
|
) {
|
||||||
with(binding.dashboardLessonsItemDayHeader) {
|
with(binding.dashboardLessonsItemDayHeader) {
|
||||||
isVisible = header != null
|
isVisible = header != null
|
||||||
text = header?.content
|
text = header?.content?.parseAsHtml()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user