Removed seperate line on folder list
This commit is contained in:
parent
f3c0bee131
commit
33ed4fe4c3
2 changed files with 18 additions and 32 deletions
|
@ -54,16 +54,6 @@ class SongFileAdapter(private val activity: AppCompatActivity, private var dataS
|
||||||
|
|
||||||
holder.itemView.isActivated = isChecked(file)
|
holder.itemView.isActivated = isChecked(file)
|
||||||
|
|
||||||
if (holder.adapterPosition == itemCount - 1) {
|
|
||||||
if (holder.shortSeparator != null) {
|
|
||||||
holder.shortSeparator!!.visibility = View.GONE
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (holder.shortSeparator != null) {
|
|
||||||
holder.shortSeparator!!.visibility = View.VISIBLE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (holder.title != null) {
|
if (holder.title != null) {
|
||||||
holder.title!!.text = getFileTitle(file)
|
holder.title!!.text = getFileTitle(file)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,3 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2019 Hemanth Savarala.
|
|
||||||
*
|
|
||||||
* Licensed under the GNU General Public License v3
|
|
||||||
*
|
|
||||||
* This is free software: you can redistribute it and/or modify it under
|
|
||||||
* the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
||||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
* See the GNU General Public License for more details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package code.name.monkey.appthemehelper.common.prefs.supportv7
|
package code.name.monkey.appthemehelper.common.prefs.supportv7
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
@ -24,14 +10,24 @@ import code.name.monkey.appthemehelper.R
|
||||||
import code.name.monkey.appthemehelper.ThemeStore
|
import code.name.monkey.appthemehelper.ThemeStore
|
||||||
import code.name.monkey.appthemehelper.util.TintHelper
|
import code.name.monkey.appthemehelper.util.TintHelper
|
||||||
|
|
||||||
class ATESeekBarPreference
|
class ATESeekBarPreference : SeekBarPreference {
|
||||||
@JvmOverloads constructor(
|
constructor(context: Context) : super(context) {
|
||||||
context: Context,
|
init()
|
||||||
attrs: AttributeSet? = null,
|
}
|
||||||
defStyleAttr: Int = 0,
|
|
||||||
defStyleRes: Int = 0
|
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {
|
||||||
) : SeekBarPreference(context, attrs, defStyleAttr, defStyleRes) {
|
init()
|
||||||
init {
|
}
|
||||||
|
|
||||||
|
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
|
||||||
|
init()
|
||||||
|
}
|
||||||
|
|
||||||
|
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : super(context, attrs, defStyleAttr, defStyleRes) {
|
||||||
|
init()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun init() {
|
||||||
icon?.setColorFilter(ThemeStore.textColorSecondary(context), PorterDuff.Mode.SRC_IN)
|
icon?.setColorFilter(ThemeStore.textColorSecondary(context), PorterDuff.Mode.SRC_IN)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue