Skip to content

Commit 25886de

Browse files
committed
Removed unnecessary if
1 parent 2f5710a commit 25886de

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

  • owncloudApp/src/main/java/com/owncloud/android/presentation/files/filelist

owncloudApp/src/main/java/com/owncloud/android/presentation/files/filelist/FileListAdapter.kt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,14 @@ class FileListAdapter(
216216
text = file.getParentRemotePath()
217217
isVisible = true
218218
}
219-
if (fileListOption.isAvailableOffline()) {
220-
fileItem.space?.let { space ->
221-
it.spacePathLine.spaceIcon.isVisible = true
222-
it.spacePathLine.spaceName.isVisible = true
223-
if (space.isPersonal) {
224-
it.spacePathLine.spaceIcon.setImageResource(R.drawable.ic_folder)
225-
it.spacePathLine.spaceName.setText(R.string.bottom_nav_personal)
226-
} else {
227-
it.spacePathLine.spaceName.text = space.name
228-
}
219+
fileItem.space?.let { space ->
220+
it.spacePathLine.spaceIcon.isVisible = true
221+
it.spacePathLine.spaceName.isVisible = true
222+
if (space.isPersonal) {
223+
it.spacePathLine.spaceIcon.setImageResource(R.drawable.ic_folder)
224+
it.spacePathLine.spaceName.setText(R.string.bottom_nav_personal)
225+
} else {
226+
it.spacePathLine.spaceName.text = space.name
229227
}
230228
}
231229
} else {

0 commit comments

Comments
 (0)