Skip to content

Commit 2f3cf5d

Browse files
committed
fix uploaded file's indicator
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent e5b02a8 commit 2f3cf5d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ class FileDisplayActivity :
16991699

17001700
if (uploadWasFine) {
17011701
file?.let {
1702-
removeFileIndicator(it, includeSubFiles = false)
1702+
setIdleFileIndicator(it, includeSubFiles = false)
17031703
}
17041704
}
17051705

@@ -2143,7 +2143,7 @@ class FileDisplayActivity :
21432143
}
21442144
supportInvalidateOptionsMenu()
21452145
fetchRecommendedFilesIfNeeded(ignoreETag = true, currentDir)
2146-
removeFileIndicator(removedFile)
2146+
setIdleFileIndicator(removedFile)
21472147
} else {
21482148
if (result.isSslRecoverableException) {
21492149
mLastSslUntrustedServerResult = result
@@ -2152,7 +2152,7 @@ class FileDisplayActivity :
21522152
}
21532153
}
21542154

2155-
private fun removeFileIndicator(file: OCFile, includeSubFiles: Boolean = true) {
2155+
private fun setIdleFileIndicator(file: OCFile, includeSubFiles: Boolean = true) {
21562156
FileIndicatorManager.update(file.fileId, FileIndicator.Idle)
21572157

21582158
if (!includeSubFiles) {

0 commit comments

Comments
 (0)