Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed May 26, 2024
1 parent 523ee06 commit 1b210f3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ private void getConnectionUser() {
private void displayConnectionDescription() {
final String description = getString(R.string.network_connected_as, mUser);
final int userStart = description.indexOf(mUser);
if (userStart == -1) {
Log.e("BrowserBySmb", "displayConnectionDescription: user string not found in description");
return;
}
final int userEnd = userStart + mUser.length();
final SpannableStringBuilder sb = new SpannableStringBuilder(description);
sb.setSpan(new TypefaceSpan("sans-serif-light"), 0, description.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
Expand Down

0 comments on commit 1b210f3

Please sign in to comment.