Merge "Always invoke show on the dismiss target for pip." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b8c7133078
@@ -288,8 +288,10 @@ public class PipDismissTargetHandler implements ViewTreeObserver.OnPreDrawListen
|
|||||||
|
|
||||||
if (mTargetViewContainer.getVisibility() != View.VISIBLE) {
|
if (mTargetViewContainer.getVisibility() != View.VISIBLE) {
|
||||||
mTargetViewContainer.getViewTreeObserver().addOnPreDrawListener(this);
|
mTargetViewContainer.getViewTreeObserver().addOnPreDrawListener(this);
|
||||||
mTargetViewContainer.show();
|
|
||||||
}
|
}
|
||||||
|
// always invoke show, since the target might still be VISIBLE while playing hide animation,
|
||||||
|
// so we want to ensure it will show back again
|
||||||
|
mTargetViewContainer.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Animates the magnetic dismiss target out and then sets it to GONE. */
|
/** Animates the magnetic dismiss target out and then sets it to GONE. */
|
||||||
|
|||||||
Reference in New Issue
Block a user