From 0e3ef76d6e1111f300daf1b2d24b641d0625e7eb Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Tue, 31 Dec 2024 15:15:11 +0100 Subject: [PATCH] recreate group activity when list text size was changed --- src/keepass2android-appSdkStyle/GroupBaseActivity.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/keepass2android-appSdkStyle/GroupBaseActivity.cs b/src/keepass2android-appSdkStyle/GroupBaseActivity.cs index fa2285068..cc33568c8 100644 --- a/src/keepass2android-appSdkStyle/GroupBaseActivity.cs +++ b/src/keepass2android-appSdkStyle/GroupBaseActivity.cs @@ -52,6 +52,8 @@ public abstract class GroupBaseActivity : LockCloseActivity public const String KeyEntry = "entry"; public const String KeyMode = "mode"; + private float _currentListTextSize; + public const int RequestCodeActivateRealSearch = 12366; static readonly Dictionary bottomBarElementsPriority = new Dictionary() @@ -279,6 +281,11 @@ protected override void OnResume() //can happen e.g. after theme change return; } + if (PrefsUtil.GetListTextSize(this) != _currentListTextSize) + { + Recreate(); + return; + } AppTask.StartInGroupActivity(this); AppTask.SetupGroupBaseActivityButtons(this); @@ -514,6 +521,7 @@ public virtual bool IsSearchResult protected override void OnCreate(Bundle savedInstanceState) { _design.ApplyTheme(); + _currentListTextSize = PrefsUtil.GetListTextSize(this); base.OnCreate(savedInstanceState); Android.Util.Log.Debug("KP2A", "Creating GBA");