Commit 06565722 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Extract quote padding to dimens

parent 928f5bbf
...@@ -134,7 +134,9 @@ class MessageParser @Inject constructor(val context: Application, private val co ...@@ -134,7 +134,9 @@ class MessageParser @Inject constructor(val context: Application, private val co
// pass to super to apply markdown // pass to super to apply markdown
super.visit(blockQuote) super.visit(blockQuote)
builder.setSpan(QuoteMarginSpan(context.getDrawable(R.drawable.quote), 10), length, builder.length()) val padding = context.resources.getDimensionPixelSize(R.dimen.quote_padding)
builder.setSpan(QuoteMarginSpan(context.getDrawable(R.drawable.quote), padding), length,
builder.length())
} }
} }
......
...@@ -19,4 +19,7 @@ ...@@ -19,4 +19,7 @@
<dimen name="supposed_keyboard_height">252dp</dimen> <dimen name="supposed_keyboard_height">252dp</dimen>
<!-- Message -->
<dimen name="quote_padding">8dp</dimen>
</resources> </resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment