fix: close memory usage view on back press

This commit is contained in:
Akash Yadav
2024-05-18 01:57:26 +05:30
parent 8c878a0d02
commit 971a5dc12b
@@ -156,6 +156,8 @@ abstract class BaseEditorActivity : EdgeToEdgeIDEActivity(), TabLayout.OnTabSele
binding.root.closeDrawer(GravityCompat.START)
} else if (editorBottomSheet?.state != BottomSheetBehavior.STATE_COLLAPSED) {
editorBottomSheet?.setState(BottomSheetBehavior.STATE_COLLAPSED)
} else if (binding.swipeReveal.isOpen) {
binding.swipeReveal.close()
} else {
doConfirmProjectClose()
}