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

Commit 108cb00

Browse files
authored
fix: ignore soft input changes if EditorActivity is being destroyed (#1761)
1 parent f5231da commit 108cb00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/itsaky/androidide/activities/editor/BaseEditorActivity.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,10 @@ abstract class BaseEditorActivity : IDEActivity(), TabLayout.OnTabSelectedListen
563563
}
564564

565565
private fun onSoftInputChanged() {
566-
invalidateOptionsMenu()
567-
binding.bottomSheet.onSoftInputChanged()
566+
if (!isDestroying) {
567+
invalidateOptionsMenu()
568+
binding.bottomSheet.onSoftInputChanged()
569+
}
568570
}
569571

570572
private fun showNeedHelpDialog() {

0 commit comments

Comments
 (0)