am a9d6e6e3: am e3842811: am a45b03f8: Merge "ActivityTransition: fix activity not finished on back" into lmp-dev
* commit 'a9d6e6e3088e36ba731a801e676045bf65e557a8': ActivityTransition: fix activity not finished on back
This commit is contained in:
@@ -170,7 +170,7 @@ class EnterTransitionCoordinator extends ActivityTransitionCoordinator {
|
||||
|
||||
private void sendSharedElementDestination() {
|
||||
boolean allReady;
|
||||
if (allowOverlappingTransitions()) {
|
||||
if (allowOverlappingTransitions() && getEnterViewsTransition() != null) {
|
||||
allReady = false;
|
||||
} else {
|
||||
allReady = !getDecor().isLayoutRequested();
|
||||
|
||||
@@ -140,7 +140,8 @@ class ExitTransitionCoordinator extends ActivityTransitionCoordinator {
|
||||
if (getDecor() != null) {
|
||||
getDecor().suppressLayout(true);
|
||||
}
|
||||
if (!mSharedElements.isEmpty() && getSharedElementTransition() != null) {
|
||||
if (mExitSharedElementBundle != null && !mExitSharedElementBundle.isEmpty() &&
|
||||
!mSharedElements.isEmpty() && getSharedElementTransition() != null) {
|
||||
startTransition(new Runnable() {
|
||||
public void run() {
|
||||
startSharedElementExit();
|
||||
|
||||
Reference in New Issue
Block a user