mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-07-03 21:21:12 +08:00
Fix rules list not updated after delete
Adding a rule after deleting another rule did not update the view
This commit is contained in:
parent
2bde04c971
commit
4c0ce35085
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user