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