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

Commit a05f75d6 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 9267

* changes:
  Don't invalidate view if setEnabled doesn't change the state.
parents f0f6c51e a2ef00b4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2983,6 +2983,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
     * @param enabled True if this view is enabled, false otherwise.
     */
    public void setEnabled(boolean enabled) {
        if (enabled == isEnabled()) return;

        setFlags(enabled ? ENABLED : DISABLED, ENABLED_MASK);

        /*