Skip to content
Snippets Groups Projects
Commit d0aa75b1 authored by Taras's avatar Taras
Browse files

Fix lint error

parent a373c5ef
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,8 @@ class MediaPreviewViewModel( ...@@ -26,7 +26,8 @@ class MediaPreviewViewModel(
fun loadData(context: Context) { fun loadData(context: Context) {
when (val content = mediaPreviewDataSource.getPostContent()) { val content = mediaPreviewDataSource.getPostContent() ?: return
when (content) {
is ImageContent -> imageLiveData.postValue(content) is ImageContent -> imageLiveData.postValue(content)
is VideoContent -> launchBg { is VideoContent -> launchBg {
val uri = val uri =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment