mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-10-18 13:32:36 +00:00
Remove IN HISTORY label on stream info items
This commit is contained in:
@@ -21,7 +21,7 @@ abstract class FeedDAO {
|
||||
|
||||
@Query(
|
||||
"""
|
||||
SELECT s.*, sst.progress_time, (sh.stream_id IS NOT NULL) AS is_stream_in_history
|
||||
SELECT s.*, sst.progress_time
|
||||
FROM streams s
|
||||
|
||||
LEFT JOIN stream_state sst
|
||||
@@ -41,7 +41,7 @@ abstract class FeedDAO {
|
||||
|
||||
@Query(
|
||||
"""
|
||||
SELECT s.*, sst.progress_time, (sh.stream_id IS NOT NULL) AS is_stream_in_history
|
||||
SELECT s.*, sst.progress_time
|
||||
FROM streams s
|
||||
|
||||
LEFT JOIN stream_state sst
|
||||
@@ -66,7 +66,7 @@ abstract class FeedDAO {
|
||||
|
||||
@Query(
|
||||
"""
|
||||
SELECT s.*, sst.progress_time, (sh.stream_id IS NOT NULL) AS is_stream_in_history
|
||||
SELECT s.*, sst.progress_time
|
||||
FROM streams s
|
||||
|
||||
LEFT JOIN stream_state sst
|
||||
@@ -95,7 +95,7 @@ abstract class FeedDAO {
|
||||
|
||||
@Query(
|
||||
"""
|
||||
SELECT s.*, sst.progress_time, (sh.stream_id IS NOT NULL) AS is_stream_in_history
|
||||
SELECT s.*, sst.progress_time
|
||||
FROM streams s
|
||||
|
||||
LEFT JOIN stream_state sst
|
||||
|
||||
@@ -10,8 +10,5 @@ data class StreamWithState(
|
||||
val stream: StreamEntity,
|
||||
|
||||
@ColumnInfo(name = StreamStateEntity.STREAM_PROGRESS_TIME)
|
||||
val stateProgressTime: Long?,
|
||||
|
||||
@ColumnInfo(name = "is_stream_in_history")
|
||||
val isInHistory: Boolean = false
|
||||
val stateProgressTime: Long?
|
||||
)
|
||||
|
||||
@@ -30,7 +30,6 @@ data class StreamItem(
|
||||
|
||||
private val stream: StreamEntity = streamWithState.stream
|
||||
private val stateProgressTime: Long? = streamWithState.stateProgressTime
|
||||
private val isInHistory: Boolean = streamWithState.isInHistory
|
||||
|
||||
override fun getId(): Long = stream.uid
|
||||
|
||||
@@ -94,9 +93,6 @@ data class StreamItem(
|
||||
viewBinding.itemProgressView.visibility = View.GONE
|
||||
}
|
||||
|
||||
viewBinding.itemInHistoryIndicatorView.visibility =
|
||||
if (isInHistory && !isLiveStream) View.VISIBLE else View.GONE
|
||||
|
||||
ImageLoader.getInstance().displayImage(
|
||||
stream.thumbnailUrl, viewBinding.itemThumbnailView,
|
||||
ImageDisplayConstants.DISPLAY_THUMBNAIL_OPTIONS
|
||||
|
||||
Reference in New Issue
Block a user