[android] fix string in whats new.

This commit is contained in:
velichkomarija 2020-10-19 14:18:50 +03:00 committed by Aleksandr Zatsepin
parent 4921a15d85
commit 02af66e57e
2 changed files with 3 additions and 1 deletions

View file

@ -7,7 +7,7 @@
</integer-array>
<string-array name="news_title_keys">
<item>whatsnew_lp_integration_title</item>
<item>whatsnew_lp_title</item>
</string-array>
<string-array name="news_messages_1">

View file

@ -267,12 +267,14 @@ public class BookmarkCategory implements Parcelable
return 0;
}
@NonNull
public static String getRepresentation(@NonNull Context context, @NonNull Author author)
{
Resources res = context.getResources();
return String.format(res.getString(R.string.author_name_by_prefix), author.getName());
}
@NonNull
public static String getContentByString(@NonNull Context context, @NonNull Author author)
{
Resources res = context.getResources();