Skip to content
Permalink
Browse files

Handle RTL override mark in flairs

  • Loading branch information...
QuantumBadger committed Jun 2, 2019
1 parent 8961728 commit 708865e5b144091b7ead8b183ca291ad12d3c066
@@ -72,6 +72,8 @@

public static final Charset CHARSET_UTF8 = Charset.forName("UTF-8");

public static final String LTR_OVERRIDE_MARK = "\u202D";

public static final int COLOR_INVALID = Color.MAGENTA;

private static long lastBackPress = -1;
@@ -712,7 +712,7 @@ private void rebuildSubtitle(Context context) {
}

if(src.getFlairText() != null) {
postListDescSb.append(" " + src.getFlairText() + "\u200E ", BetterSSB.BOLD | BetterSSB.FOREGROUND_COLOR | BetterSSB.BACKGROUND_COLOR,
postListDescSb.append(" " + src.getFlairText() + General.LTR_OVERRIDE_MARK + " ", BetterSSB.BOLD | BetterSSB.FOREGROUND_COLOR | BetterSSB.BACKGROUND_COLOR,
rrFlairTextCol, rrFlairBackCol, 1f);
postListDescSb.append(" ", 0);
}
@@ -25,6 +25,7 @@
import org.quantumbadger.redreader.account.RedditAccountManager;
import org.quantumbadger.redreader.common.BetterSSB;
import org.quantumbadger.redreader.common.Constants;
import org.quantumbadger.redreader.common.General;
import org.quantumbadger.redreader.common.LinkHandler;
import org.quantumbadger.redreader.common.PrefsUtility;
import org.quantumbadger.redreader.common.RRThemeAttributes;
@@ -145,7 +146,7 @@ public CharSequence getHeader(
}

sb.append(
" " + flair + "\u200E ",
" " + flair + General.LTR_OVERRIDE_MARK + " ",
BetterSSB.FOREGROUND_COLOR | BetterSSB.BACKGROUND_COLOR,
theme.rrFlairTextCol,
theme.rrFlairBackCol,

0 comments on commit 708865e

Please sign in to comment.
You can’t perform that action at this time.