Skip to content
Closed
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fixed the modification of the original timestamp when decompressing folders ([#190])
- Fixed the Files tab not refreshing after decompressing a ZIP archive from the file preview screen ([#194])

## [1.6.1] - 2026-02-14
### Changed
Expand Down Expand Up @@ -130,6 +131,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#149]: https://github.com/FossifyOrg/File-Manager/issues/149
[#150]: https://github.com/FossifyOrg/File-Manager/issues/150
[#176]: https://github.com/FossifyOrg/File-Manager/issues/176
[#194]: https://github.com/FossifyOrg/File-Manager/issues/194
[#217]: https://github.com/FossifyOrg/File-Manager/issues/217
[#224]: https://github.com/FossifyOrg/File-Manager/issues/224
[#250]: https://github.com/FossifyOrg/File-Manager/issues/250
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ import java.io.File
class DecompressActivity : SimpleActivity() {
companion object {
private const val PASSWORD = "password"

// set on successful extraction so MainActivity can open the extracted folder on resume
var extractedFolderPath: String? = null
}

private val binding by viewBinding(ActivityDecompressBinding::inflate)
Expand Down Expand Up @@ -202,8 +205,12 @@ class DecompressActivity : SimpleActivity() {
for ((outputFile, entry) in foldersTimestamp.asReversed()) {
outputFile.setLastModified(entry)
}
toast(R.string.decompression_successful)
finish()
val extractedFolder = "$destination/${filename.substringBeforeLast(".")}"
runOnUiThread {
toast(R.string.decompression_successful)
extractedFolderPath = extractedFolder
finish()
}
}
} catch (e: Exception) {
showErrorToast(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ class MainActivity : SimpleActivity() {
if (binding.mainViewPager.adapter == null) {
initFragments()
}

DecompressActivity.extractedFolderPath?.let { path ->
DecompressActivity.extractedFolderPath = null
openPath(path, true)
}
}

override fun onPause() {
Expand Down
Loading