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

Commit f76c17f0 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Add debug for specific bug."

parents 6db10546 9e105e0a
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) {
@@ -5139,6 +5145,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();
            }

@@ -5166,6 +5174,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);