Skip to content

Commit

Permalink
Deleted handle tint
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Jan 30, 2024
1 parent 4a7af17 commit a0bc559
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,4 @@ class BottomSheetFragmentItemView @JvmOverloads constructor(
binding.itemTitle.setTextColor(selectedColor)
binding.itemAdditionalIcon.setColorFilter(selectedColor)
}

fun removeDefaultTint() {
binding.itemIcon.imageTintList = null
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,6 @@ class MainFileListFragment : Fragment(),
listAppRegistry.forEach { appRegistry ->
val documentTypeItemView = BottomSheetFragmentItemView(requireContext())
documentTypeItemView.apply {
removeDefaultTint()
title = appRegistry.name
itemIcon = ResourcesCompat.getDrawable(resources, MimetypeIconUtil.getFileTypeIconId(appRegistry.mimeType, appRegistry.ext), null)
setOnClickListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
android:background="?android:attr/selectableItemBackground"
android:padding="@dimen/standard_half_padding">

<androidx.appcompat.widget.AppCompatImageView
<ImageView
android:id="@+id/item_icon"
android:layout_width="@dimen/bottom_sheet_fragment_item_icon_size"
android:layout_height="@dimen/bottom_sheet_fragment_item_icon_size"
android:tint="@color/bottom_sheet_fragment_item_color"
app:layout_constraintBottom_toBottomOf="@+id/item_title"
app:layout_constraintEnd_toStartOf="@id/item_title"
app:layout_constraintStart_toStartOf="parent"
Expand Down

0 comments on commit a0bc559

Please sign in to comment.