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

Commit 9e105e0a authored by Craig Mautner's avatar Craig Mautner
Browse files

Add debug for specific bug.

To be removed once the bug is fixed.

Change-Id: I83bd5b9fd722826c59b1178303fc4e7feb8eefd2
parent 97f41383
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -420,6 +420,8 @@ public final class ViewRootImpl implements ViewParent,
        synchronized (this) {
            if (mView == null) {
                mView = view;
                Slog.d(TAG, "setView: b9406261 setting mView to " + view + " mAdded=" + mAdded
                        + " Callers=" + Debug.getCallers(4));
                mViewLayoutDirectionInitial = mView.getRawLayoutDirection();
                mFallbackEventHandler.setView(view);
                mWindowAttributes.copyFrom(attrs);
@@ -475,6 +477,8 @@ public final class ViewRootImpl implements ViewParent,
                            = panelParentView.getApplicationWindowToken();
                }
                mAdded = true;
                Slog.d(TAG, "setView: b9406261 setting mAdded=true mView=" + mView
                        + " Callers=" + Debug.getCallers(4));
                int res; /* = WindowManagerImpl.ADD_OKAY; */

                // Schedule the first layout -before- adding to the window
@@ -500,6 +504,8 @@ public final class ViewRootImpl implements ViewParent,
                    mFallbackEventHandler.setView(null);
                    unscheduleTraversals();
                    setAccessibilityFocus(null, null);
                    Slog.d(TAG, "setView: b9406261 threw exception e=" + e
                            + " Callers=" + Debug.getCallers(4));
                    throw new RuntimeException("Adding window failed", e);
                } finally {
                    if (restore) {
@@ -5121,6 +5127,8 @@ public final class ViewRootImpl implements ViewParent,
        if (LOCAL_LOGV) Log.v(TAG, "DIE in " + this + " of " + mSurface);
        synchronized (this) {
            if (mAdded) {
                Slog.d(TAG, "doDie: b9406261 mAdded==true mView=" + mView
                    + " Callers=" + Debug.getCallers(4));
                dispatchDetachedFromWindow();
            }

@@ -5148,6 +5156,8 @@ public final class ViewRootImpl implements ViewParent,
                }
            }

            Slog.d(TAG, "doDie: b9406261 setting mAdded=false mView=" + mView
                + " Callers=" + Debug.getCallers(4));
            mAdded = false;
        }
        WindowManagerGlobal.getInstance().doRemoveView(this);