Skip to content

Commit

Permalink
Fix #2827 (When sharing a verse, the switch for "show at front of the…
Browse files Browse the repository at this point in the history
… verse" doesn't work...)
  • Loading branch information
tuomas2 committed Sep 14, 2023
1 parent f640eff commit 5f50b90
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ class ShareWidget(context: Context, attributeSet: AttributeSet?, val selection:
toggleShowReference.isChecked = CommonUtils.settings.getBoolean("share_show_reference", true)
toggleAbbreviateReference.isChecked = CommonUtils.settings.getBoolean("share_abbreviate_reference", true)
toggleShowVersion.isChecked = CommonUtils.settings.getBoolean("share_show_version", true)
toggleShowReferenceAtFront.isChecked =
CommonUtils.settings.getBoolean("share_show_reference_at_front", true)
toggleNotes.visibility = if (selection.notes != null) View.VISIBLE else View.GONE
toggleNotes.isChecked = CommonUtils.settings.getBoolean("show_notes", true)
toggleShowSelectionOnly.isChecked = CommonUtils.settings.getBoolean("show_selection_only", true)
toggleShowEllipsis.isChecked = CommonUtils.settings.getBoolean("show_ellipsis", true)
toggleShowReferenceAtFront.isChecked =
CommonUtils.settings.getBoolean("share_show_ref_at_front_of_verse", false)
CommonUtils.settings.getBoolean("share_show_reference_at_front", true)
toggleShowQuotes.isChecked = CommonUtils.settings.getBoolean("share_show_quotes", false)

// update text when any toggle is clicked
Expand Down Expand Up @@ -112,7 +110,7 @@ class ShareWidget(context: Context, attributeSet: AttributeSet?, val selection:
setBoolean("show_notes", bindings.toggleNotes.isChecked)
setBoolean("show_selection_only", bindings.toggleShowSelectionOnly.isChecked)
setBoolean("show_ellipsis", bindings.toggleShowEllipsis.isChecked)
setBoolean("share_show_ref_at_front_of_verse", bindings.toggleShowReferenceAtFront.isChecked)
setBoolean("share_show_reference_at_front", bindings.toggleShowReferenceAtFront.isChecked)
setBoolean("share_show_quotes", bindings.toggleShowQuotes.isChecked)
}

Expand Down

0 comments on commit 5f50b90

Please sign in to comment.