Skip to content

Commit

Permalink
Merge pull request #2530 from PhilippC/release-preparation-1-11
Browse files Browse the repository at this point in the history
changelog for version 1.11
  • Loading branch information
PhilippC committed Feb 6, 2024
2 parents e38e7df + 54eb1ba commit c0c4524
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 10 deletions.
32 changes: 22 additions & 10 deletions src/keepass2android/ChangeLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void ShowChangeLog(Context ctx, Action onDismiss)
AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(ctx, Android.Resource.Style.ThemeHoloLightDialog));
builder.SetTitle(ctx.GetString(Resource.String.ChangeLog_title));
List<string> changeLog = new List<string>{
BuildChangelogString(ctx, new List<int>{Resource.Array.ChangeLog_1_11,Resource.Array.ChangeLog_1_11_net}, "1.11"),
BuildChangelogString(ctx, Resource.Array.ChangeLog_1_10, "1.10"),
BuildChangelogString(ctx, Resource.Array.ChangeLog_1_09e, "1.09e"),
BuildChangelogString(ctx, Resource.Array.ChangeLog_1_09d, "1.09d"),
Expand Down Expand Up @@ -122,21 +123,32 @@ public static void ShowChangeLog(Context ctx, Action onDismiss)
}

private static string BuildChangelogString(Context ctx, int changeLogResId, string version)
{
string result = "Version " + version + "\n";
{
return BuildChangelogString(ctx, new List<int>() { changeLogResId }, version);

}


private static string BuildChangelogString(Context ctx, List<int> changeLogResIds, string version)
{
string result = "Version " + version + "\n";
string previous = "";
foreach (var item in ctx.Resources.GetStringArray(changeLogResId))
foreach (var changeLogResId in changeLogResIds)
{
if (item == previous) //there was some trouble with crowdin translations, remove duplicates
continue;
result += " * " + item + "\n";
previous = item;
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;

return result;

}
}

private const string HtmlStart = @"<html>
private const string HtmlStart = @"<html>
<head>
<style type='text/css'>
a { color:#000000 }
Expand Down
15 changes: 15 additions & 0 deletions src/keepass2android/Resources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,21 @@
<string name="CloseDbAfterFailedAttempts">Close database after three failed biometric unlock attempts.</string>
<string name="WarnFingerprintInvalidated">Warning! Biometric authentication can be invalidated by Android, e.g. after adding a new fingerprint in your device settings. Make sure you always know how to unlock with your master password!</string>


<string-array name="ChangeLog_1_11">
<item>Added floating action buttons for search and TOTP overview (if TOTP entries are present).</item>
<item>Improved display of TOTP fields by adding a timeout indicator and showing it more prominently.</item>
<item>TOTP can now be seen from the group view.</item>
<item>Copy text value to clipboard on long-press in entry view.</item>
<item>Make TOTP more easily accessible on the built-in keyboard.</item>
<item>Show entry notification when autofilling a TOTP entry. This allows to copy the TOTP to clipboard. See preferences to configure the behavior.</item>
<item>Updated TOTP implementation to resolve compatibility issues with KeePass2 and TrayTOTP</item>
<item>Minor improvements</item>
</string-array>
<string-array name="ChangeLog_1_11_net">
<item>Update pCloud SDK to provide access to shared folders</item>
</string-array>

<string-array name="ChangeLog_1_10">
<item>Add support for notification permissions on Android 13+</item>
<item>Improve the FTP and SFTP implementation</item>
Expand Down

0 comments on commit c0c4524

Please sign in to comment.