am 2d53188b: Merge "Fix NPE when transitioning on unattached scene root." into lmp-dev
* commit '2d53188b2ed3950f4d1c7e5163ba181c83ea5c85': Fix NPE when transitioning on unattached scene root.
This commit is contained in:
@@ -1656,7 +1656,7 @@ public abstract class Transition implements Cloneable {
|
||||
WindowId windowId = sceneRoot.getWindowId();
|
||||
for (int i = numOldAnims - 1; i >= 0; i--) {
|
||||
AnimationInfo info = runningAnimators.valueAt(i);
|
||||
if (info.view != null && windowId.equals(info.windowId)) {
|
||||
if (info.view != null && windowId != null && windowId.equals(info.windowId)) {
|
||||
Animator anim = runningAnimators.keyAt(i);
|
||||
anim.pause();
|
||||
}
|
||||
@@ -1689,7 +1689,7 @@ public abstract class Transition implements Cloneable {
|
||||
WindowId windowId = sceneRoot.getWindowId();
|
||||
for (int i = numOldAnims - 1; i >= 0; i--) {
|
||||
AnimationInfo info = runningAnimators.valueAt(i);
|
||||
if (info.view != null && windowId.equals(info.windowId)) {
|
||||
if (info.view != null && windowId != null && windowId.equals(info.windowId)) {
|
||||
Animator anim = runningAnimators.keyAt(i);
|
||||
anim.resume();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user