``` js
// Because there may be more than one activities...
if (!inlineActivityFrames.length) {
  screenElement.classList.remove('inline-activity');
  // if attention screen is fully visible, early return.
  // else, do the following set orientation/resize/focus stuff....
  ....
} else {
  // do nothing if attention screen is fully visible
  // otherwise
  setOrientationForInlineActivity(inlineActivityFrames[inlineActivityFrames.length - 1]);
}
```
You have lots of ways to achieve the same effect as above but definitely not this patch.