Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog/unreleased/4879
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Crash from Google Play Console in FileDetailsFragment

To prevent crashes, the navigation logic when navigating back has been
improved, especially in cases where the observed file is null.

https://github.com/owncloud/android/issues/4737
https://github.com/owncloud/android/pull/4879
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author Aitor Ballesteros Pavón
* @author Jorge Aguado Recio
*
* Copyright (C) 2025 ownCloud GmbH.
* Copyright (C) 2026 ownCloud GmbH.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
Expand Down Expand Up @@ -610,7 +610,7 @@ class FileDetailsFragment : FileFragment() {
file = ocFileWithSyncInfo.file
updateDetails(ocFileWithSyncInfo)
} else {
requireActivity().onBackPressed()
requireActivity().onBackPressedDispatcher.onBackPressed()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @author Jorge Aguado Recio
*
* Copyright (C) 2011 Bartek Przybylski
* Copyright (C) 2025 ownCloud GmbH.
* Copyright (C) 2026 ownCloud GmbH.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
Expand Down Expand Up @@ -543,7 +543,7 @@ class FileDisplayActivity : FileActivity(),
if (second != null) {
val tr = supportFragmentManager.beginTransaction()
tr.remove(second)
tr.commitNow()
tr.commit()
}
updateFragmentsVisibility(false)
updateToolbar(null)
Expand Down
Loading