Fix sleep timer crash, removed discord etc

This commit is contained in:
h4h13 2019-06-16 23:40:28 +05:30
parent 933bf70068
commit 55807200d5
48 changed files with 104 additions and 281 deletions

View file

@ -64,14 +64,10 @@ open class MediaEntryViewHolder(view: View) : RecyclerView.ViewHolder(view), Vie
playSongs = view.findViewById(R.id.playSongs)
view.setOnClickListener(this@MediaEntryViewHolder)
view.setOnLongClickListener(this)
view.setOnLongClickListener(this@MediaEntryViewHolder)
imageContainerCard?.setCardBackgroundColor(ThemeStore.primaryColor(itemView.context))
if (imageTextContainer != null) {
imageTextContainer!!.setCardBackgroundColor(ThemeStore.primaryColor(itemView.context))
}
if (imageContainerCard != null) {
imageContainerCard!!.setCardBackgroundColor(ThemeStore.primaryColor(itemView.context))
}
}
fun setImageTransitionName(transitionName: String) {

View file

@ -203,7 +203,10 @@ class PlaylistAdapter(protected val activity: AppCompatActivity, dataSet: ArrayL
popupMenu.show()
}
imageTextContainer?.cardElevation = 0f
imageTextContainer?.apply {
cardElevation = 0f
setCardBackgroundColor(ThemeStore.primaryColor(itemView.context))
}
}
override fun onClick(v: View?) {