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

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

Merge "Check if a visible layer exists instead of an invisible layer exists" into oc-dev

parents f0f8a81d 356bc377
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -361,10 +361,10 @@ void DisplayService::NotifyDisplayConfigurationUpdate() {
}

int DisplayService::IsVrAppRunning(pdx::Message& message) {
  bool visible = true;
  bool visible = false;
  ForEachDisplaySurface([&visible](const std::shared_ptr<DisplaySurface>& surface) {
    if (surface->client_z_order() == 0 && !surface->IsVisible())
      visible = false;
    if (surface->client_z_order() == 0 && surface->IsVisible())
      visible = true;
  });

  REPLY_SUCCESS_RETURN(message, visible, 0);