Skip to content

Commit

Permalink
issue boostcampwm-2022#171 feat: content text nullable
Browse files Browse the repository at this point in the history
Co-authored-by: junhyeongleeee <[email protected]>
  • Loading branch information
junhyeongleeee committed Jul 25, 2023
1 parent fee1db1 commit 6b5b20f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class PlayFilmViewModel @Inject constructor(
var dateModel = savedStateHandle.get<DateModel>(PlayFilmFragment.KEY_DATE_MODEL)
?: throw IllegalStateException("PlayFilmViewModel - DateModel is null")

private val _text = MutableLiveData<String>(dateModel.text)
val text: LiveData<String> get() = _text
private val _text = MutableStateFlow(dateModel.text)
val text: StateFlow<String?> get() = _text

private val _videoUri = MutableLiveData<Uri?>()
val videoUri: LiveData<Uri?> get() = _videoUri
Expand Down

0 comments on commit 6b5b20f

Please sign in to comment.