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

Commit b8432ae0 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: Ie2f7e9d9f56c31ba342b790e565b547728524bae
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 93a08405 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;