switch all string placeholders to positional format (#4387)
closes #3297
This commit is contained in:
parent
d5a01f671c
commit
71424401a1
57 changed files with 3938 additions and 3938 deletions
|
|
@ -557,7 +557,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter<RecyclerView.View
|
|||
message.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null);
|
||||
String wholeMessage = String.format(format, displayName);
|
||||
final SpannableStringBuilder str = new SpannableStringBuilder(wholeMessage);
|
||||
int displayNameIndex = format.indexOf("%s");
|
||||
int displayNameIndex = format.indexOf("%1$s");
|
||||
str.setSpan(
|
||||
new StyleSpan(Typeface.BOLD),
|
||||
displayNameIndex,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue