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( setCompoundDrawablesRelative(
if (item.drawable != null) { if (item.drawable != null) {
AppCompatResources.getDrawable(context, item.drawable) AppCompatResources.getDrawable(context, item.drawable)
} else null, null, null, null } else {
null
},
null,
null,
null
) )
setOnClickListener { setOnClickListener {

View File

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