Skip to content

Commit

Permalink
Was first run wizard model changed?
Browse files Browse the repository at this point in the history
  • Loading branch information
pnemonic78 committed Jan 29, 2025
1 parent 9bd52ba commit 86085cc
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,16 @@ private FirstRunWizardModel createWizardModel(Bundle savedInstanceState) {
if (savedInstanceState != null) {
Bundle savedValues = savedInstanceState.getBundle(STATE_MODEL);
if (savedValues != null) {
model.load(savedValues);
boolean hasAllPages = true;
for (String key : savedValues.keySet()) {
if (model.findByKey(key) == null) {
hasAllPages = false;
break;
}
}
if (hasAllPages) {
model.load(savedValues);
}
}
}
model.registerListener(this);
Expand Down

0 comments on commit 86085cc

Please sign in to comment.