Skip to content

Commit

Permalink
Fixed issue where rotating device would cause new tags not to persist.
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-alexander committed Jun 18, 2020
1 parent eebd499 commit 25d0c62
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ class PrepublishingTagsViewModel @Inject constructor(
val toolbarTitleUiState: LiveData<UiString> = _toolbarTitleUiState

fun start(editPostRepository: EditPostRepository) {
this.editPostRepository = editPostRepository

if (isStarted) return
isStarted = true

this.editPostRepository = editPostRepository
setToolbarTitleUiState()
}

Expand Down

0 comments on commit 25d0c62

Please sign in to comment.