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

Commit 9f93606a authored by Miranda Kephart's avatar Miranda Kephart Committed by Automerger Merge Worker
Browse files

Fix NPE in GlobalScreenshot am: 771d8f8f am: e5ba0ac1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12539580

Change-Id: Ifb102d82012bbe989840d3731f6b58cc3eb0e90f
parents b97e88e1 e5ba0ac1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -574,7 +574,8 @@ public class GlobalScreenshot implements ViewTreeObserver.OnComputeInternalInset
    private void saveScreenshot(Bitmap screenshot, Consumer<Uri> finisher, Rect screenRect,
            Insets screenInsets, boolean showFlash) {
        if (mScreenshotLayout.isAttachedToWindow()) {
            if (!mDismissAnimation.isRunning()) { // if we didn't already dismiss for another reason
            // if we didn't already dismiss for another reason
            if (mDismissAnimation == null || !mDismissAnimation.isRunning()) {
                mUiEventLogger.log(ScreenshotEvent.SCREENSHOT_REENTERED);
            }
            dismissScreenshot("new screenshot requested", true);