Skip to content

Commit

Permalink
[Badge] Refactor Badge state managing logic
Browse files Browse the repository at this point in the history
This CL fixes a couple of badge state related issues. First, it prevents the badges created before restoring instance states from being overwritten by the old instance states. Second, it makes badges reload their default style settings everytime when its being recreated so if the environment has been changed, the default values will reflect the environment change.

This CL also fixes that several attributes were not correctly saved/restored or their default values were not correctly loaded.

Resolves #2032

PiperOrigin-RevId: 420096508
  • Loading branch information
drchen authored and afohrman committed Jan 6, 2022
1 parent 3db25be commit bbbeacd
Show file tree
Hide file tree
Showing 6 changed files with 661 additions and 343 deletions.

0 comments on commit bbbeacd

Please sign in to comment.