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

Commit cdce4835 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Changed name of recent hasLayout() method to isLaidOut()"

parents 209bede6 7a46dde1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26768,7 +26768,6 @@ package android.view {
    method public float getY();
    method public boolean hasFocus();
    method public boolean hasFocusable();
    method public boolean hasLayout();
    method public boolean hasOnClickListeners();
    method public boolean hasOverlappingRendering();
    method public boolean hasTransientState();
@@ -26798,6 +26797,7 @@ package android.view {
    method public boolean isInEditMode();
    method public boolean isInLayout();
    method public boolean isInTouchMode();
    method public boolean isLaidOut();
    method public boolean isLayoutDirectionResolved();
    method public boolean isLayoutRequested();
    method public boolean isLongClickable();
+6 −6
Original line number Diff line number Diff line
@@ -2198,7 +2198,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * Flag indicating that the view has been through at least one layout since it
     * was last attached to a window.
     */
    static final int PFLAG3_HAS_LAYOUT = 0x4;
    static final int PFLAG3_IS_LAID_OUT = 0x4;
    /**
     * Flag indicating that a call to measure() was skipped and should be done
@@ -6160,8 +6160,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * Returns true if this view has been through at least one layout since it
     * was last attached to or detached from a window.
     */
    public boolean hasLayout() {
        return (mPrivateFlags3 & PFLAG3_HAS_LAYOUT) == PFLAG3_HAS_LAYOUT;
    public boolean isLaidOut() {
        return (mPrivateFlags3 & PFLAG3_IS_LAID_OUT) == PFLAG3_IS_LAID_OUT;
    }
    /**
@@ -11813,7 +11813,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            mPrivateFlags &= ~PFLAG_AWAKEN_SCROLL_BARS_ON_ATTACH;
        }
        mPrivateFlags3 &= ~PFLAG3_HAS_LAYOUT;
        mPrivateFlags3 &= ~PFLAG3_IS_LAID_OUT;
        jumpDrawablesToCurrentState();
@@ -12112,7 +12112,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     */
    protected void onDetachedFromWindow() {
        mPrivateFlags &= ~PFLAG_CANCEL_NEXT_UP_EVENT;
        mPrivateFlags3 &= ~PFLAG3_HAS_LAYOUT;
        mPrivateFlags3 &= ~PFLAG3_IS_LAID_OUT;
        removeUnsetPressCallback();
        removeLongPressCallback();
@@ -14439,7 +14439,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
        mPrivateFlags &= ~PFLAG_FORCE_LAYOUT;
        mPrivateFlags3 |= PFLAG3_HAS_LAYOUT;
        mPrivateFlags3 |= PFLAG3_IS_LAID_OUT;
    }
    /**
+1 −1
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ public class TransitionManager {
     * value of null causes the TransitionManager to use the default transition.
     */
    public static void beginDelayedTransition(final ViewGroup sceneRoot, Transition transition) {
        if (!sPendingTransitions.contains(sceneRoot) && sceneRoot.hasLayout()) {
        if (!sPendingTransitions.contains(sceneRoot) && sceneRoot.isLaidOut()) {
            if (Transition.DBG) {
                Log.d(LOG_TAG, "beginDelayedTransition: root, transition = " +
                        sceneRoot + ", " + transition);
+1 −1
Original line number Diff line number Diff line
@@ -1480,7 +1480,7 @@ public class HorizontalScrollView extends FrameLayout {
        }
        mChildToScrollTo = null;

        if (!hasLayout()) {
        if (!isLaidOut()) {
            final int scrollRange = Math.max(0,
                    childWidth - (r - l - mPaddingLeft - mPaddingRight));
            if (mSavedState != null) {
+1 −1
Original line number Diff line number Diff line
@@ -1473,7 +1473,7 @@ public class ScrollView extends FrameLayout {
        }
        mChildToScrollTo = null;

        if (!hasLayout()) {
        if (!isLaidOut()) {
            if (mSavedState != null) {
                mScrollY = mSavedState.scrollPosition;
                mSavedState = null;