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

Commit 78fbe06a authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing window dump timing out on wallpaper service

Bug: 64101886
Test: Verified window dump finishes instantly
Change-Id: I446c834d10f1b491703159b06f4efda0342322ed
parent f80a7518
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ import com.android.internal.os.IResultReceiver;

import dalvik.annotation.compat.UnsupportedAppUsage;

import java.io.IOException;

public class BaseIWindow extends IWindow.Stub {

    @UnsupportedAppUsage(maxTargetSdk = android.os.Build.VERSION_CODES.P)
@@ -101,6 +103,13 @@ public class BaseIWindow extends IWindow.Stub {

    @Override
    public void executeCommand(String command, String parameters, ParcelFileDescriptor out) {
        if (out != null) {
            try {
                out.closeWithError("Unsupported command " + command);
            } catch (IOException e) {
                // Ignore
            }
        }
    }

    @Override