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

Commit 9f9d61fd authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Readd missing null check

Test: adb shell am instrument -w -r
android.test.appsmoke/android.support.test.runner.AndroidJUnitRunner

Change-Id: I8f7c325cf73805ed7137792479f5f348c74f85e4
Fixes: 34333370
parent 6a7a8599
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2112,6 +2112,9 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
            boolean wallpaperOnly, boolean includeDecor) {
        Bitmap bitmap = screenshotApplications(appToken, width, height, includeFullDisplay,
                frameScale, wallpaperOnly, includeDecor, SurfaceControl::screenshot);
        if (bitmap == null) {
            return null;
        }

        if (DEBUG_SCREENSHOT) {
            // TEST IF IT's ALL BLACK