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

Commit 50bd661d authored by Chia-I Wu's avatar Chia-I Wu Committed by android-build-merger
Browse files

libsurfaceflinger: fix screenshot permission check am: fc0b9110

am: 88f99396

Change-Id: I41c256f2b96bf0adbe7e7aa05828c3e4e1725ff5
parents 5205430b 88f99396
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4447,7 +4447,7 @@ status_t SurfaceFlinger::captureScreenImplLocked(const sp<const DisplayDevice>&
    bool secureLayerIsVisible = false;
    for (const auto& layer : mDrawingState.layersSortedByZ) {
        const Layer::State& state(layer->getDrawingState());
        if (layer->belongsToDisplay(hw->getLayerStack(), false) ||
        if (!layer->belongsToDisplay(hw->getLayerStack(), false) ||
                (state.z < minLayerZ || state.z > maxLayerZ)) {
            continue;
        }