Skip to content

Commit 4428aef

Browse files
committed
style(unified-search): theme load center button
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent c346baa commit 4428aef

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/java/com/owncloud/android/ui/adapter/UnifiedSearchFooterViewHolder.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ import com.afollestad.sectionedrecyclerview.SectionedViewHolder
1212
import com.owncloud.android.databinding.UnifiedSearchFooterBinding
1313
import com.owncloud.android.ui.interfaces.UnifiedSearchListInterface
1414
import com.owncloud.android.ui.unifiedsearch.UnifiedSearchSection
15+
import com.owncloud.android.utils.theme.ViewThemeUtils
1516

1617
class UnifiedSearchFooterViewHolder(
1718
val binding: UnifiedSearchFooterBinding,
1819
val context: Context,
20+
private val viewThemeUtils: ViewThemeUtils,
1921
private val listInterface: UnifiedSearchListInterface
2022
) : SectionedViewHolder(binding.root) {
2123

2224
fun bind(section: UnifiedSearchSection) {
25+
viewThemeUtils.material.colorMaterialTextButton(binding.unifiedSearchFooterLayout)
2326
binding.unifiedSearchFooterLayout.setOnClickListener {
2427
listInterface.onLoadMoreClicked(section.providerID)
2528
}

app/src/main/java/com/owncloud/android/ui/adapter/UnifiedSearchListAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class UnifiedSearchListAdapter(
120120
parent,
121121
false
122122
)
123-
UnifiedSearchFooterViewHolder(binding, context, listInterface)
123+
UnifiedSearchFooterViewHolder(binding, context, viewThemeUtils, listInterface)
124124
}
125125

126126
VIEW_TYPE_ITEM -> {

0 commit comments

Comments
 (0)