Skip to content

Commit e5b02a8

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

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,12 @@ class FileDisplayActivity :
16971697
sameFile = file?.remotePath == uploadedRemotePath || renamedInUpload
16981698
}
16991699

1700+
if (uploadWasFine) {
1701+
file?.let {
1702+
removeFileIndicator(it, includeSubFiles = false)
1703+
}
1704+
}
1705+
17001706
if (sameAccount && sameFile && this@FileDisplayActivity.leftFragment is FileDetailFragment) {
17011707
val fileDetailFragment = leftFragment as FileDetailFragment
17021708
if (uploadWasFine) {
@@ -2146,9 +2152,13 @@ class FileDisplayActivity :
21462152
}
21472153
}
21482154

2149-
private fun removeFileIndicator(file: OCFile) {
2155+
private fun removeFileIndicator(file: OCFile, includeSubFiles: Boolean = true) {
21502156
FileIndicatorManager.update(file.fileId, FileIndicator.Idle)
21512157

2158+
if (!includeSubFiles) {
2159+
return
2160+
}
2161+
21522162
lifecycleScope.launch(Dispatchers.IO) {
21532163
if (user.isEmpty) {
21542164
return@launch

0 commit comments

Comments
 (0)