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

Commit b8404be7 authored by Timi Rautamäki's avatar Timi Rautamäki Committed by Łukasz Patron
Browse files

SystemUI: Unblock gestural navigation on clearScreenshot()

If user powers screen off when partial screenshot UI is visible,
it will hide the UI but leave gestural navigation disabled.
Also the partial screenshot UI would be visible when taking a
new (normal) screenshot.

Change-Id: Ie8138bb0b771ec0e21ceb48e52872c05c946d3b4
parent 74544b9e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -404,7 +404,9 @@ public class GlobalScreenshot implements ViewTreeObserver.OnComputeInternalInset

    void hideScreenshotSelector() {
        setLockedScreenOrientation(false);
        if (mScreenshotLayout.getWindowToken() != null) {
            mWindowManager.removeView(mScreenshotLayout);
        }
        mScreenshotSelectorView.stopSelection();
        mScreenshotSelectorView.setVisibility(View.GONE);
        mCaptureButton.setVisibility(View.GONE);
@@ -1174,6 +1176,7 @@ public class GlobalScreenshot implements ViewTreeObserver.OnComputeInternalInset
        mActionsContainer.setTranslationY(0);
        mActionsContainerBackground.setTranslationY(0);
        mScreenshotPreview.setTranslationY(0);
        hideScreenshotSelector();
    }

    private void setAnimatedViewSize(int width, int height) {