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

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

libsurfaceflinger: fix screenshot permission check

am: fc0b9110

Change-Id: Ia1f33c0d3b0d08452723c595bfc50f5fe4629172
parents ba893c2c fc0b9110
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4392,7 +4392,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;
        }