forked from github/szkolny
[UI] Fix timetable crash when syncing (#54)
* Fix removeView * Use removeView() instead of removeAllViews() * Remove dayView from layout file
This commit is contained in:
parent
a4d604e146
commit
4bed62aa6f
@ -151,7 +151,7 @@ class TimetableDayFragment : LazyFragment(), CoroutineScope {
|
||||
}
|
||||
|
||||
b.scrollView.isVisible = true
|
||||
b.dayFrame.removeView(b.dayView)
|
||||
b.dayFrame.removeView(dayView)
|
||||
b.dayFrame.addView(dayView, 0)
|
||||
|
||||
// Inflate a label view for each hour the day view will display
|
||||
|
@ -36,12 +36,6 @@
|
||||
android:layout_marginHorizontal="8dp"
|
||||
android:background="@color/md_red_500"
|
||||
tools:layout_marginTop="100dp" />
|
||||
|
||||
<com.linkedin.android.tachyon.DayView
|
||||
android:id="@+id/dayView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout_height="match_parent" />
|
||||
</FrameLayout>
|
||||
</pl.szczodrzynski.edziennik.utils.ListenerScrollView>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user