Converted all text to material widgest and font
This commit is contained in:
parent
fa2707fc0f
commit
a4d7ad90d4
174 changed files with 2000 additions and 3145 deletions
|
@ -82,12 +82,6 @@ class SearchAdapter(private val activity: AppCompatActivity, private var dataSet
|
|||
init {
|
||||
itemView.setOnLongClickListener(null)
|
||||
|
||||
if (itemViewType != HEADER) {
|
||||
if (separator != null) {
|
||||
separator!!.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
if (menu != null) {
|
||||
if (itemViewType == SONG) {
|
||||
menu!!.visibility = View.VISIBLE
|
||||
|
|
|
@ -84,16 +84,6 @@ open class AlbumAdapter(protected val activity: AppCompatActivity,
|
|||
val isChecked = isChecked(album)
|
||||
holder.itemView.isActivated = isChecked
|
||||
|
||||
if (holder.adapterPosition == itemCount - 1) {
|
||||
if (holder.shortSeparator != null) {
|
||||
holder.shortSeparator!!.visibility = View.GONE
|
||||
}
|
||||
} else {
|
||||
if (holder.shortSeparator != null) {
|
||||
holder.shortSeparator!!.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
if (holder.title != null) {
|
||||
holder.title!!.text = getAlbumTitle(album)
|
||||
}
|
||||
|
|
|
@ -68,9 +68,7 @@ class ArtistAdapter(val activity: AppCompatActivity,
|
|||
if (holder.text != null) {
|
||||
holder.text!!.visibility = View.GONE
|
||||
}
|
||||
if (holder.shortSeparator != null) {
|
||||
holder.shortSeparator!!.visibility = View.GONE
|
||||
}
|
||||
|
||||
loadArtistImage(artist, holder)
|
||||
}
|
||||
|
||||
|
|
|
@ -27,8 +27,6 @@ open class MediaEntryViewHolder(view: View) : RecyclerView.ViewHolder(view), Vie
|
|||
var imageContainer: ViewGroup? = null
|
||||
var imageContainerCard: CardView? = null
|
||||
var menu: View? = null
|
||||
var separator: View? = null
|
||||
var shortSeparator: View? = null
|
||||
var dragView: View? = null
|
||||
var paletteColorContainer: View? = null
|
||||
var time: TextView? = null
|
||||
|
@ -53,8 +51,6 @@ open class MediaEntryViewHolder(view: View) : RecyclerView.ViewHolder(view), Vie
|
|||
menu = view.findViewById(R.id.menu)
|
||||
dragView = view.findViewById(R.id.drag_view)
|
||||
|
||||
separator = view.findViewById(R.id.separator)
|
||||
shortSeparator = view.findViewById(R.id.short_separator)
|
||||
paletteColorContainer = view.findViewById(R.id.palette_color_container)
|
||||
|
||||
time = view.findViewById(R.id.time);
|
||||
|
|
|
@ -84,15 +84,6 @@ class PlaylistAdapter(protected val activity: AppCompatActivity, dataSet: ArrayL
|
|||
if (holder.image != null) {
|
||||
holder.image!!.setImageDrawable(getIconRes(playlist))
|
||||
}
|
||||
if (holder.adapterPosition == itemCount - 1) {
|
||||
if (holder.shortSeparator != null) {
|
||||
holder.shortSeparator!!.visibility = View.GONE
|
||||
}
|
||||
} else {
|
||||
if (holder.shortSeparator != null && dataSet[position] !is AbsSmartPlaylist) {
|
||||
holder.shortSeparator!!.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun getIconRes(playlist: Playlist): Drawable {
|
||||
|
|
|
@ -78,16 +78,6 @@ open class SongAdapter @JvmOverloads constructor(protected val activity: AppComp
|
|||
val isChecked = isChecked(song)
|
||||
holder.itemView.isActivated = isChecked
|
||||
|
||||
if (holder.adapterPosition == itemCount - 1) {
|
||||
if (holder.shortSeparator != null) {
|
||||
holder.shortSeparator!!.visibility = View.GONE
|
||||
}
|
||||
} else {
|
||||
if (holder.shortSeparator != null) {
|
||||
holder.shortSeparator!!.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
if (holder.title != null) {
|
||||
holder.title!!.text = getSongTitle(song)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue