From 5c558ae1f92f5fe4bbc575f4fd65c9f80ac7100a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Borcz?= Date: Sun, 8 Apr 2018 18:05:41 +0200 Subject: [PATCH] Show fully name on expand header (#82) --- .../wulkanowy/ui/main/grades/GradeHeaderItem.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;