Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ import com.afollestad.sectionedrecyclerview.SectionedViewHolder
import com.owncloud.android.databinding.UnifiedSearchFooterBinding
import com.owncloud.android.ui.interfaces.UnifiedSearchListInterface
import com.owncloud.android.ui.unifiedsearch.UnifiedSearchSection
import com.owncloud.android.utils.theme.ViewThemeUtils

class UnifiedSearchFooterViewHolder(
val binding: UnifiedSearchFooterBinding,
val context: Context,
private val viewThemeUtils: ViewThemeUtils,
private val listInterface: UnifiedSearchListInterface
) : SectionedViewHolder(binding.root) {

fun bind(section: UnifiedSearchSection) {
viewThemeUtils.material.colorMaterialTextButton(binding.unifiedSearchFooterLayout)
binding.unifiedSearchFooterLayout.setOnClickListener {
listInterface.onLoadMoreClicked(section.providerID)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class UnifiedSearchListAdapter(
parent,
false
)
UnifiedSearchFooterViewHolder(binding, context, listInterface)
UnifiedSearchFooterViewHolder(binding, context, viewThemeUtils, listInterface)
}

VIEW_TYPE_ITEM -> {
Expand Down
11 changes: 5 additions & 6 deletions app/src/main/res/layout/unified_search_footer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
~ SPDX-FileCopyrightText: 2026 Alper Ozturk <alper.ozturk@nextcloud.com>
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
<com.google.android.material.button.MaterialButton
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/unified_search_footer_layout"
style="@style/Widget.Material3.Button.TextButton"
android:layout_width="match_parent"
android:layout_height="@dimen/min_list_item_size"
android:gravity="center_vertical"
android:paddingStart="@dimen/standard_list_item_size"
android:paddingEnd="@dimen/standard_quarter_padding"
android:text="@string/load_more_results"
android:textColor="@color/secondary_text_color" />
android:gravity="center"
android:text="@string/load_more_results" />
Loading