From cd265fc31febeb93319ee4124fa61b3baf9d4ff4 Mon Sep 17 00:00:00 2001 From: XiangRongLin <41164160+XiangRongLin@users.noreply.github.com> Date: Fri, 21 Jan 2022 17:01:11 +0100 Subject: [PATCH] Make SearchHistoryEntry.kt fields nullable to match java version (#7674) --- .../newpipe/database/history/model/SearchHistoryEntry.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/database/history/model/SearchHistoryEntry.kt b/app/src/main/java/org/schabi/newpipe/database/history/model/SearchHistoryEntry.kt index 13f3cefc2..8cb9a25ca 100644 --- a/app/src/main/java/org/schabi/newpipe/database/history/model/SearchHistoryEntry.kt +++ b/app/src/main/java/org/schabi/newpipe/database/history/model/SearchHistoryEntry.kt @@ -12,11 +12,11 @@ import java.time.OffsetDateTime indices = [Index(value = [SearchHistoryEntry.SEARCH])] ) data class SearchHistoryEntry( - @field:ColumnInfo(name = CREATION_DATE) var creationDate: OffsetDateTime, + @field:ColumnInfo(name = CREATION_DATE) var creationDate: OffsetDateTime?, @field:ColumnInfo( name = SERVICE_ID ) var serviceId: Int, - @field:ColumnInfo(name = SEARCH) var search: String + @field:ColumnInfo(name = SEARCH) var search: String? ) { @ColumnInfo(name = ID) @PrimaryKey(autoGenerate = true)