Browse Source

fix grades divider shown when sub-subject was added

pull/46/head
Jannik 2 years ago
parent
commit
2807843d25
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
  1. 6
      app/src/main/java/org/mosad/seil0/projectlaogai/fragments/GradesFragment.kt

6
app/src/main/java/org/mosad/seil0/projectlaogai/fragments/GradesFragment.kt

@ -137,11 +137,9 @@ class GradesFragment : Fragment() {
// disable sub-subject if not set
if (subSubject == null)
subjectLayout.disableSubSubject()
// FIXME this is broken
// disable divider if last element
//if (index == semester.value.lastIndex || semester.value.indexOf(subSubject) == semester.value.lastIndex)
if (index == semester.value.lastIndex)
if (index == semester.value.lastIndex || semester.value.indexOf(subSubject) == semester.value.lastIndex)
subjectLayout.disableDivider()
semesterCard.getLinLayoutDay().addView(subjectLayout)

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close