remove duplicates from Changelog

This commit is contained in:
Philipp Crocoll
2020-08-06 06:38:36 +02:00
parent 555109c243
commit 50a1092a65

View File

@@ -116,10 +116,14 @@ namespace keepass2android
private static string BuildChangelogString(Context ctx, int changeLogResId, string version)
{
string result = "Version " + version + "\n";
string previous = "";
foreach (var item in ctx.Resources.GetStringArray(changeLogResId))
{
{
if (item == previous) //there was some trouble with crowdin translations, remove duplicates
continue;
result += " * " + item + "\n";
}
previous = item;
}
return result;
}