fix to potential crash when reloading the database. related to 4910c73a5e

This commit is contained in:
Philipp Crocoll
2023-04-08 08:25:09 +02:00
parent badf99c20d
commit b3a73f20d4

View File

@@ -68,7 +68,7 @@ namespace keepass2android.view
{
_groupActivity = groupActivity;
View ev = Inflate(groupActivity, Resource.Layout.entry_list_entry, null);
View ev = Inflate(groupActivity, Resource.Layout.entry_list_entry, null);
_textView = (TextView)ev.FindViewById(Resource.Id.entry_text);
_textView.TextSize = PrefsUtil.GetListTextSize(groupActivity);
@@ -103,7 +103,11 @@ namespace keepass2android.view
private void PopulateView(View ev, PwEntry pw, int pos)
{
_entry = pw;
if (_groupBaseActivity.IsFinishing)
return;
_entry = pw;
_pos = pos;
ev.FindViewById(Resource.Id.icon).Visibility = ViewStates.Visible;
ev.FindViewById(Resource.Id.check_mark).Visibility = ViewStates.Invisible;