diff --git a/app/src/main/java/io/github/wulkanowy/ui/main/grades/GradeHeaderItem.java b/app/src/main/java/io/github/wulkanowy/ui/main/grades/GradeHeaderItem.java index a66be29b..77a87a3b 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/main/grades/GradeHeaderItem.java +++ b/app/src/main/java/io/github/wulkanowy/ui/main/grades/GradeHeaderItem.java @@ -95,6 +95,16 @@ public class GradeHeaderItem ? View.INVISIBLE : View.VISIBLE); } + @Override + public void onClick(View view) { + super.onClick(view); + if (subjectName.getLineCount() == 1) { + subjectName.setMaxLines(3); + } else { + subjectName.setMaxLines(1); + } + } + private boolean isSubItemsReadAndSaveAlertView(List subItems) { boolean isRead = true;