Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: ignore soft input changes if EditorActivity is being destroyed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
teixeira0x authored Mar 29, 2024
1 parent f5231da commit 108cb00
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,10 @@ abstract class BaseEditorActivity : IDEActivity(), TabLayout.OnTabSelectedListen
}

private fun onSoftInputChanged() {
invalidateOptionsMenu()
binding.bottomSheet.onSoftInputChanged()
if (!isDestroying) {
invalidateOptionsMenu()
binding.bottomSheet.onSoftInputChanged()
}
}

private fun showNeedHelpDialog() {
Expand Down

0 comments on commit 108cb00

Please sign in to comment.