Merge "Workaround to force show TaskFragment while back gesture animating." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6b02ff5740
@@ -862,8 +862,16 @@ class BackNavigationController {
|
|||||||
WindowContainer target, boolean isOpen) {
|
WindowContainer target, boolean isOpen) {
|
||||||
final BackWindowAnimationAdaptor adaptor =
|
final BackWindowAnimationAdaptor adaptor =
|
||||||
new BackWindowAnimationAdaptor(target, isOpen);
|
new BackWindowAnimationAdaptor(target, isOpen);
|
||||||
target.startAnimation(target.getPendingTransaction(), adaptor, false /* hidden */,
|
final SurfaceControl.Transaction pt = target.getPendingTransaction();
|
||||||
ANIMATION_TYPE_PREDICT_BACK);
|
target.startAnimation(pt, adaptor, false /* hidden */, ANIMATION_TYPE_PREDICT_BACK);
|
||||||
|
// Workaround to show TaskFragment which can be hide in Transitions and won't show
|
||||||
|
// during isAnimating.
|
||||||
|
if (isOpen && target.asActivityRecord() != null) {
|
||||||
|
final TaskFragment fragment = target.asActivityRecord().getTaskFragment();
|
||||||
|
if (fragment != null) {
|
||||||
|
pt.show(fragment.mSurfaceControl);
|
||||||
|
}
|
||||||
|
}
|
||||||
return adaptor;
|
return adaptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user