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

Commit b199568a authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Remove redundant calls to invalidateParentIfNeeded

Test: CtsViewTestCases

setLeft, setTop, setRight, and setBottom called it once, and then
potentially called it again. The second call is unnecessary.

Change-Id: If92d4b786d4680024614042cd8905ae56ea1c9e9
parent 39a9df4d
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -16815,10 +16815,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                mForegroundInfo.mBoundsChanged = true;
            }
            invalidateParentIfNeeded();
            if ((mPrivateFlags2 & PFLAG2_VIEW_QUICK_REJECTED) == PFLAG2_VIEW_QUICK_REJECTED) {
                // View was rejected last time it was drawn by its parent; this may have changed
                invalidateParentIfNeeded();
            }
        }
    }
@@ -16884,10 +16880,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                mForegroundInfo.mBoundsChanged = true;
            }
            invalidateParentIfNeeded();
            if ((mPrivateFlags2 & PFLAG2_VIEW_QUICK_REJECTED) == PFLAG2_VIEW_QUICK_REJECTED) {
                // View was rejected last time it was drawn by its parent; this may have changed
                invalidateParentIfNeeded();
            }
        }
    }
@@ -16947,10 +16939,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                mForegroundInfo.mBoundsChanged = true;
            }
            invalidateParentIfNeeded();
            if ((mPrivateFlags2 & PFLAG2_VIEW_QUICK_REJECTED) == PFLAG2_VIEW_QUICK_REJECTED) {
                // View was rejected last time it was drawn by its parent; this may have changed
                invalidateParentIfNeeded();
            }
        }
    }
@@ -17007,10 +16995,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                mForegroundInfo.mBoundsChanged = true;
            }
            invalidateParentIfNeeded();
            if ((mPrivateFlags2 & PFLAG2_VIEW_QUICK_REJECTED) == PFLAG2_VIEW_QUICK_REJECTED) {
                // View was rejected last time it was drawn by its parent; this may have changed
                invalidateParentIfNeeded();
            }
        }
    }