Skip to content

Commit

Permalink
Always send false on non-debug builds for posting answer in preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbwong committed Nov 14, 2020
1 parent 7560be2 commit 0d138f7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ class PostAnswerFragment : BaseFragment<PostAnswerFragmentBinding>(
if (!binding.markdownEditText.text.isNullOrBlank()) {
viewModel.postAnswer(
binding.markdownEditText.text.toString(),
isPreview = binding.debugPreview.isChecked
isPreview = if (BuildConfig.DEBUG) {
binding.debugPreview.isChecked
} else {
false
}
)
}
}
Expand Down

0 comments on commit 0d138f7

Please sign in to comment.