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

Commit 232aeac1 authored by Mark Punzalan's avatar Mark Punzalan Committed by Automerger Merge Worker
Browse files

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

Merge "Don't clear translation state on temporary detachment." into tm-dev am: 76ba87f9 am: 29e91d3a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18624095



Change-Id: Iee6eaf3add103d344eba4e49e7a7fb69fcb62309
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents be36c9a7 29e91d3a
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;