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

Commit 6a7a2776 authored by Chris Li's avatar Chris Li
Browse files

Ignore WindowStateResizeItem remote exception when process relaunch

Fix: 329087654
Test: replace exception with log
Change-Id: I44ef014bc2067e29de430bd3805e183e3fe746f7
parent 42ca889a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.content.Context;
import android.os.Parcel;
import android.os.RemoteException;
import android.os.Trace;
import android.util.Log;
import android.util.MergedConfiguration;
import android.view.IWindow;
import android.view.InsetsState;
@@ -41,6 +42,8 @@ import java.util.Objects;
 */
public class WindowStateResizeItem extends ClientTransactionItem {

    private static final String TAG = "WindowStateResizeItem";

    private IWindow mWindow;
    private ClientWindowFrames mFrames;
    private boolean mReportDraw;
@@ -65,7 +68,9 @@ public class WindowStateResizeItem extends ClientTransactionItem {
                    mAlwaysConsumeSystemBars, mDisplayId, mSyncSeqId, mDragResizing);
        } catch (RemoteException e) {
            // Should be a local call.
            throw new RuntimeException(e);
            // An exception could happen if the process is restarted. It is safe to ignore since
            // the window should no longer exist.
            Log.w(TAG, "The original window no longer exists in the new process", e);
        }
        Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER);
    }