Skip to content

Commit

Permalink
refactor: remove unnecessary function and join two if conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
joragua committed Jan 8, 2025
1 parent fe8ff62 commit 0c36fa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,8 @@ class ShareActivity : FileActivity(), ShareFragmentListener {

override fun onOptionsItemSelected(item: MenuItem): Boolean {
var retval = true
if (item.itemId == android.R.id.home) {
if (!supportFragmentManager.popBackStackImmediate()) {
finish()
}
if (item.itemId == android.R.id.home && !supportFragmentManager.popBackStackImmediate()) {
finish()
} else {
retval = super.onOptionsItemSelected(item)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1509,10 +1509,6 @@ class FileDisplayActivity : FileActivity(),
}
}

override fun onSavedCertificate() {
// Nothing to do
}

private fun requestForDownload(file: OCFile) {
val downloadFileUseCase: DownloadFileUseCase by inject()

Expand Down

0 comments on commit 0c36fa3

Please sign in to comment.