Show fully name on expand header (#82)

This commit is contained in:
Rafał Borcz 2018-04-08 18:05:41 +02:00 committed by Mikołaj Pich
parent 0708d84b98
commit 5c558ae1f9

View File

@ -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<GradesSubItem> subItems) {
boolean isRead = true;