From 45220241aae226c1a12396f335e0adb35ba4bfc3 Mon Sep 17 00:00:00 2001 From: Joshua Soberg Date: Tue, 28 Nov 2023 19:04:18 -0500 Subject: [PATCH] #1231 - Use public constructors for License/Changelog dialog fragments so that they can be recreated on configuration change --- .../com/beemdevelopment/aegis/ui/dialogs/ChangelogDialog.java | 2 +- .../com/beemdevelopment/aegis/ui/dialogs/LicenseDialog.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/beemdevelopment/aegis/ui/dialogs/ChangelogDialog.java b/app/src/main/java/com/beemdevelopment/aegis/ui/dialogs/ChangelogDialog.java index 1d6f6ee5d8..d26d24b8b9 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/ui/dialogs/ChangelogDialog.java +++ b/app/src/main/java/com/beemdevelopment/aegis/ui/dialogs/ChangelogDialog.java @@ -5,7 +5,7 @@ import com.beemdevelopment.aegis.R; public class ChangelogDialog extends SimpleWebViewDialog { - private ChangelogDialog() { + public ChangelogDialog() { super(R.string.changelog); } diff --git a/app/src/main/java/com/beemdevelopment/aegis/ui/dialogs/LicenseDialog.java b/app/src/main/java/com/beemdevelopment/aegis/ui/dialogs/LicenseDialog.java index 11ba9ca0a7..ee947ddb74 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/ui/dialogs/LicenseDialog.java +++ b/app/src/main/java/com/beemdevelopment/aegis/ui/dialogs/LicenseDialog.java @@ -5,7 +5,7 @@ import com.beemdevelopment.aegis.R; public class LicenseDialog extends SimpleWebViewDialog { - private LicenseDialog() { + public LicenseDialog() { super(R.string.license); }