diff --git a/app/src/main/java/com/nextcloud/talk/extensions/ImageViewExtensions.kt b/app/src/main/java/com/nextcloud/talk/extensions/ImageViewExtensions.kt index 0a487f405..c50b35900 100644 --- a/app/src/main/java/com/nextcloud/talk/extensions/ImageViewExtensions.kt +++ b/app/src/main/java/com/nextcloud/talk/extensions/ImageViewExtensions.kt @@ -137,7 +137,7 @@ fun ImageView.loadThumbnail(url: String, user: User): io.reactivex.disposables.D } if (url.startsWith(user.baseUrl!!) && - (url.contains("index.php/core/preview?fileId=") || url.contains("/avatar/")) + (url.contains("index.php/core/preview") || url.contains("/avatar/")) ) { requestBuilder.addHeader( "Authorization", @@ -163,7 +163,7 @@ fun ImageView.loadImage(url: String, user: User, placeholder: Drawable? = null): .transformations(RoundedCornersTransformation(ROUNDING_PIXEL, ROUNDING_PIXEL, ROUNDING_PIXEL, ROUNDING_PIXEL)) if (url.startsWith(user.baseUrl!!) && - (url.contains("index.php/core/preview?fileId=") || url.contains("/avatar/")) + (url.contains("index.php/core/preview") || url.contains("/avatar/")) ) { requestBuilder.addHeader( "Authorization", diff --git a/app/src/main/java/com/nextcloud/talk/remotefilebrowser/activities/RemoteFileBrowserActivity.kt b/app/src/main/java/com/nextcloud/talk/remotefilebrowser/activities/RemoteFileBrowserActivity.kt index 7c09d9e88..9f03e3f00 100644 --- a/app/src/main/java/com/nextcloud/talk/remotefilebrowser/activities/RemoteFileBrowserActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/remotefilebrowser/activities/RemoteFileBrowserActivity.kt @@ -147,7 +147,6 @@ class RemoteFileBrowserActivity : AppCompatActivity(), SelectionInterface, Swipe viewModel.selectedPaths.observe(this) { selectedPaths -> filesSelectionDoneMenuItem?.isVisible = !selectedPaths.isNullOrEmpty() - binding.recyclerView.adapter?.notifyDataSetChanged() } } diff --git a/app/src/main/java/com/nextcloud/talk/remotefilebrowser/adapters/RemoteFileBrowserItemsListViewHolder.kt b/app/src/main/java/com/nextcloud/talk/remotefilebrowser/adapters/RemoteFileBrowserItemsListViewHolder.kt index b8090ed9d..b28d94b29 100644 --- a/app/src/main/java/com/nextcloud/talk/remotefilebrowser/adapters/RemoteFileBrowserItemsListViewHolder.kt +++ b/app/src/main/java/com/nextcloud/talk/remotefilebrowser/adapters/RemoteFileBrowserItemsListViewHolder.kt @@ -96,13 +96,13 @@ class RemoteFileBrowserItemsListViewHolder( val path = ApiUtils.getUrlForFilePreviewWithRemotePath( currentUser.baseUrl, item.path, - binding.fileIcon.context.resources.getDimensionPixelSize(R.dimen.small_item_height) + fileIcon.context.resources.getDimensionPixelSize(R.dimen.small_item_height) ) if (path.isNotEmpty()) { - binding.fileIcon.loadImage(path, currentUser, placeholder) + fileIcon.loadImage(path, currentUser, placeholder) } } else { - binding.fileIcon.setImageDrawable(placeholder) + fileIcon.setImageDrawable(placeholder) } binding.filenameTextView.text = item.displayName diff --git a/scripts/analysis/lint-results.txt b/scripts/analysis/lint-results.txt index c5244b2e9..034225a6a 100644 --- a/scripts/analysis/lint-results.txt +++ b/scripts/analysis/lint-results.txt @@ -1,2 +1,2 @@ DO NOT TOUCH; GENERATED BY DRONE - Lint Report: 111 warnings + Lint Report: 110 warnings