Skip to content

Commit 18ee1f2

Browse files
committed
fix back button behaviour from trashbin
Signed-off-by: alperozturk <[email protected]>
1 parent d0a8554 commit 18ee1f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/com/owncloud/android/ui/trashbin/TrashbinActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class TrashbinActivity :
9090

9191
private val onBackPressedCallback = object : OnBackPressedCallback(true) {
9292
override fun handleOnBackPressed() {
93+
isEnabled = false
9394
trashbinPresenter?.navigateUp()
9495
}
9596
}
@@ -292,6 +293,8 @@ class TrashbinActivity :
292293
}
293294

294295
override fun onPause() {
296+
menuItemId = previousMenuItemId
297+
setNavigationViewItemChecked()
295298
super.onPause()
296299
active = false
297300
trashbinListAdapter?.cancelAllPendingTasks()

0 commit comments

Comments
 (0)