am 44673720: Merge "Fixed NPE in EnterTransitionCoordinator" into lmp-dev
* commit '44673720ac0c4eb37f56f16d262cf5da68064fe2': Fixed NPE in EnterTransitionCoordinator
This commit is contained in:
@@ -329,7 +329,10 @@ class EnterTransitionCoordinator extends ActivityTransitionCoordinator {
|
||||
@Override
|
||||
public void run() {
|
||||
if (mAnimations++ < MIN_ANIMATION_FRAMES) {
|
||||
getDecor().postOnAnimation(this);
|
||||
View decorView = getDecor();
|
||||
if (decorView != null) {
|
||||
decorView.postOnAnimation(this);
|
||||
}
|
||||
} else if (mResultReceiver != null) {
|
||||
mResultReceiver.send(MSG_HIDE_SHARED_ELEMENTS, null);
|
||||
mResultReceiver = null; // all done sending messages.
|
||||
|
||||
Reference in New Issue
Block a user