Fix ktlint

This commit is contained in:
faisalcodes 2023-02-01 22:41:04 +05:30
parent e584d7bed5
commit 89ac493496
2 changed files with 12 additions and 5 deletions

View File

@ -29,7 +29,12 @@ class BottomSheetAdapter(
setCompoundDrawablesRelative(
if (item.drawable != null) {
AppCompatResources.getDrawable(context, item.drawable)
} else null, null, null, null
} else {
null
},
null,
null,
null
)
setOnClickListener {

View File

@ -14,7 +14,7 @@ import com.github.libretube.R
*/
class DrawableTextView(
context: Context,
attrs: AttributeSet? = null,
attrs: AttributeSet? = null
) : AppCompatTextView(context, attrs) {
private var drawableStartDimen = 0F
@ -31,10 +31,12 @@ class DrawableTextView(
drawableBottomDimen = getDimen(ta, R.styleable.DrawableTextView_drawableBottomDimen)
gravity = ta.getInt(
R.styleable.DrawableTextView_android_gravity, Gravity.CENTER_VERTICAL
R.styleable.DrawableTextView_android_gravity,
Gravity.CENTER_VERTICAL
)
compoundDrawablePadding = ta.getDimensionPixelOffset(
R.styleable.DrawableTextView_android_drawablePadding, 20
R.styleable.DrawableTextView_android_drawablePadding,
20
)
} finally {
ta.recycle()
@ -110,4 +112,4 @@ class DrawableTextView(
drawableEndDimen = end
drawableBottomDimen = bottom
}
}
}