File tree Expand file tree Collapse file tree
app/src/main/java/com/owncloud/android/ui/activity Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments