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

Commit 76ba87f9 authored by Mark Punzalan's avatar Mark Punzalan Committed by Android (Google) Code Review
Browse files

Merge "Don't clear translation state on temporary detachment." into tm-dev

parents 133c2347 a6956314
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -10000,9 +10000,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            // We reset any translation state as views may be re-used (e.g., as in ListView and
            // RecyclerView). We only need to do this for views important for content capture since
            // views unimportant for content capture won't be translated anyway.
            if (!isTemporarilyDetached()) {
                clearTranslationState();
            }
        }
    }
    private void setNotifiedContentCaptureAppeared() {
        mPrivateFlags4 |= PFLAG4_NOTIFIED_CONTENT_CAPTURE_APPEARED;