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

Commit 7090b928 authored by Albert Chaulk's avatar Albert Chaulk Committed by android-build-merger
Browse files

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

am: 3fdeae8b

Change-Id: I0a49900b7451e21c5cf7c82ee84f534563afa34b
parents 65c45092 3fdeae8b
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);