Fix rules list not updated after delete

Adding a rule after deleting another rule did not
update the view
This commit is contained in:
emanuele-f 2023-01-15 10:37:32 +01:00
parent 2bde04c971
commit 4c0ce35085

View File

@ -406,12 +406,12 @@ public class EditListFragment extends Fragment implements MatchList.ListChangeLi
}
if(toRemove.size() > 0) {
mIsOwnUpdate = true;
for(MatchList.Rule rule: toRemove)
mList.removeRule(rule);
mList.save();
}
mIsOwnUpdate = true;
}
private String getExportName() {
@ -538,6 +538,7 @@ public class EditListFragment extends Fragment implements MatchList.ListChangeLi
@Override
public void onListChanged() {
if(mIsOwnUpdate) {
Log.d(TAG, "onListChanged: own update");
mIsOwnUpdate = false;
return;
}