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

Commit 971a5dc

Browse files
committed
fix: close memory usage view on back press
1 parent 8c878a0 commit 971a5dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ abstract class BaseEditorActivity : EdgeToEdgeIDEActivity(), TabLayout.OnTabSele
156156
binding.root.closeDrawer(GravityCompat.START)
157157
} else if (editorBottomSheet?.state != BottomSheetBehavior.STATE_COLLAPSED) {
158158
editorBottomSheet?.setState(BottomSheetBehavior.STATE_COLLAPSED)
159+
} else if (binding.swipeReveal.isOpen) {
160+
binding.swipeReveal.close()
159161
} else {
160162
doConfirmProjectClose()
161163
}

0 commit comments

Comments
 (0)