Fix various warnings

This commit is contained in:
Jays2Kings 2021-09-20 16:45:23 -04:00
parent 4d2f760619
commit a7ead906ae
3 changed files with 4 additions and 4 deletions

View file

@ -1094,14 +1094,14 @@ class LibraryPresenter(
db: DatabaseHelper,
sourceManager: SourceManager
) {
val random: Random = {
val random: Random = run {
val cal = Calendar.getInstance()
cal.time = Date()
cal[Calendar.MINUTE] = 0
cal[Calendar.SECOND] = 0
cal[Calendar.MILLISECOND] = 0
Random(cal.time.time)
}()
}
val recentManga by lazy {
runBlocking {

View file

@ -65,7 +65,7 @@
android:paddingStart="16dp"
android:paddingEnd="0dp"
android:paddingBottom="16dp"
app:layout_constraintHeight_default="wrap"
app:layout_constrainedHeight="true"
android:textColor="?attr/colorOnSurface"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"

View file

@ -103,7 +103,7 @@
android:layout_width="match_parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_default="wrap"
app:layout_constraintHeight="true"
app:layout_constraintTop_toBottomOf="@id/title_layout"
app:layout_constraintBottom_toTopOf="@id/text_input_layout"
android:layout_height="0dp">