mirror of
https://github.com/beemdevelopment/Aegis
synced 2024-10-01 13:33:37 +00:00
Merge pull request #1296 from alexbakker/shown-entries-bold
Only bold number of shown entries if found in the translated string
This commit is contained in:
commit
fbd3bf3ff5
|
@ -865,8 +865,10 @@ public class EntryAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
|
||||
String entriesShownString = String.format("%d", entriesShown);
|
||||
int spanStart = entriesShownSpannable.toString().indexOf(entriesShownString);
|
||||
int spanEnd = spanStart + entriesShownString.length();
|
||||
entriesShownSpannable.setSpan(new StyleSpan(Typeface.BOLD), spanStart, spanEnd, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
if (spanStart >= 0) {
|
||||
int spanEnd = spanStart + entriesShownString.length();
|
||||
entriesShownSpannable.setSpan(new StyleSpan(Typeface.BOLD), spanStart, spanEnd, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}
|
||||
|
||||
TextView textView = _footerView.findViewById(R.id.entries_shown_count);
|
||||
textView.setText(entriesShownSpannable);
|
||||
|
|
Loading…
Reference in a new issue