mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Fix ktlint
This commit is contained in:
parent
e584d7bed5
commit
89ac493496
@ -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 {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user