Skip to content

Commit

Permalink
Added a delay for resetting user prefs overrides on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
italankin committed Dec 20, 2023
1 parent 6f6a758 commit ab8e280
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ public void onEditModeCommit() {

@Override
public void onEditModeChangesCommitted() {
adapter.setUserPrefsOverrides(null);
// delay clearing prefs overrides to let real prefs settle down
requireView().postDelayed(() -> {
adapter.setUserPrefsOverrides(null);
}, 100);
}

@Override
Expand Down

0 comments on commit ab8e280

Please sign in to comment.