[UI/Agenda] Fix lesson change list truncated

This commit is contained in:
Kuba Szczodrzyński
2019-09-29 22:02:24 +02:00
parent 9a3ab838b7
commit d1164c8acd
2 changed files with 12 additions and 12 deletions

View File

@ -42,7 +42,7 @@ public class LessonChangeDialog {
this.app = _app;
dialog = new MaterialDialog.Builder(context)
.title(date.getFormattedString())
.customView(R.layout.dialog_lesson_change_list, true)
.customView(R.layout.dialog_lesson_change_list, false)
.positiveText(R.string.close)
.autoDismiss(false)
.onPositive((dialog, which) -> dialog.dismiss())
@ -53,8 +53,7 @@ public class LessonChangeDialog {
if (b == null)
return;
b.lessonChangeView.setHasFixedSize(false);
b.lessonChangeView.setNestedScrollingEnabled(false);
b.lessonChangeView.setHasFixedSize(true);
b.lessonChangeView.setLayoutManager(new LinearLayoutManager(context));
app.db.lessonDao().getAllByDate(profileId, date, Time.getNow()).observe((LifecycleOwner) context, lessons -> {