Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f50c6f3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "vrwm: Handle intents launched by the VR app" into oc-dev

parents d7adb715 ff14f069
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -219,6 +219,11 @@ base::unique_fd DisplayView::OnFrame(std::unique_ptr<HwcCallback::Frame> frame,
      visibility = ViewMode::Hidden;
      current_vr_app_ = app;
    }
  } else if ((use_2dmode_ || !is_vr_active) && app != 0 &&
             visibility == ViewMode::Hidden) {
    // This is the case for the VR app launching a 2D intent of itself on some
    // display.
    visibility = ViewMode::App;
  } else if (!current_vr_app_) {
    // The VR app is running.
    current_vr_app_ = app;