Remove IN HISTORY label on stream info items
This commit is contained in:
parent
360f5ac6f7
commit
e58feadba9
8 changed files with 5 additions and 142 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue