diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-11-20 20:07:24 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-11-20 20:07:24 +0100 |
commit | 8acab2f4c5905529170bc6329497decb86728c01 (patch) | |
tree | 82953010147db5a5519044d966c7a4370043f485 | |
parent | 66683bc17d86f3d05a2e882fc09b5b2a5932cb25 (diff) |
changed preview alpha to 0.6f
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/StylingHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/StylingHelper.java b/src/main/java/de/pixart/messenger/utils/StylingHelper.java index 913baa407..f3c0e6eef 100644 --- a/src/main/java/de/pixart/messenger/utils/StylingHelper.java +++ b/src/main/java/de/pixart/messenger/utils/StylingHelper.java @@ -79,7 +79,7 @@ public class StylingHelper { public static void format(final Editable editable, @ColorInt int color) { for (ImStyleParser.Style style : ImStyleParser.parse(editable)) { - editable.setSpan(createSpanForStyle(style), style.getStart() + 1, style.getEnd() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); + editable.setSpan(createSpanForStyle(style), style.getStart() + 1, style.getEnd(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); editable.setSpan(new ForegroundColorSpan(color), style.getStart(), style.getStart() + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); editable.setSpan(new ForegroundColorSpan(color), style.getEnd(), style.getEnd() + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } @@ -123,7 +123,7 @@ public class StylingHelper { clear(editable); final int color = mEditText.getCurrentTextColor(); final int syntaxColor = Color.argb( - Math.round(Color.alpha(color) * 0.5f), + Math.round(Color.alpha(color) * 0.6f), Color.red(color), Color.green(color), Color.blue(color) |