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

Commit 7493fc58 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

am: f0e9eaf8

Change-Id: I5652f12bebd0a5f284d5c1d92d954dd4f3f586a1
parents 643e1306 f0e9eaf8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4455,7 +4455,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;
        }