Merge "Don't clear translation state on temporary detachment." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
76ba87f909
@@ -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
|
// 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
|
// RecyclerView). We only need to do this for views important for content capture since
|
||||||
// views unimportant for content capture won't be translated anyway.
|
// views unimportant for content capture won't be translated anyway.
|
||||||
|
if (!isTemporarilyDetached()) {
|
||||||
clearTranslationState();
|
clearTranslationState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void setNotifiedContentCaptureAppeared() {
|
private void setNotifiedContentCaptureAppeared() {
|
||||||
mPrivateFlags4 |= PFLAG4_NOTIFIED_CONTENT_CAPTURE_APPEARED;
|
mPrivateFlags4 |= PFLAG4_NOTIFIED_CONTENT_CAPTURE_APPEARED;
|
||||||
|
|||||||
Reference in New Issue
Block a user