Skip to content

Commit

Permalink
reset zoom on card flip
Browse files Browse the repository at this point in the history
  • Loading branch information
gayatriii0803 committed Jan 6, 2025
1 parent 5ff3c18 commit 631783e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ class ReviewerFragment :
}
}

private fun resetZoom() {
webView.settings.loadWithOverviewMode = false
webView.settings.loadWithOverviewMode = true
}

private fun setupAnswerButtons(view: View) {
val hideAnswerButtons = sharedPrefs().getBoolean(getString(R.string.hide_answer_buttons_key), false)
if (hideAnswerButtons) {
Expand Down Expand Up @@ -309,6 +314,7 @@ class ReviewerFragment :
showAnswerButton.isVisible = true
answerButtonsLayout.isVisible = false
}
resetZoom()
}

if (sharedPrefs().getBoolean(getString(R.string.hide_hard_and_easy_key), false)) {
Expand Down

0 comments on commit 631783e

Please sign in to comment.