Always restore the first window or active window no matter what. Active window is priority, first window is the fallback.
This ignores the Apple UserActivity that is given to us to "restore" because it can be nil when you kill the app to fast, or perhaps when some other condition happens.
This pull request fixes #8517
Submitter Checklist:
[x] Unit Tests are updated to cover new or changed functionality
[x] User-facing strings use NSLocalizableString()
[x] New or updated UI has been tested across:
[x] Light & dark mode
[x] Different size classes (iPhone, landscape, iPad)
Summary of Changes
This pull request fixes #8517
Submitter Checklist:
NSLocalizableString()
Test Plan:
Reviewer Checklist:
QA/(Yes|No)
bug
/enhancement