Fixs NPE when start back-to-home animation.
Animation target should get from parameter. Bug: 238475284 Test: build/flash, monitor launcher won't crash while start back-to-home animation Change-Id: I7bd254a436ddcf250d90827b9d81d628bcd4313c
This commit is contained in:
@@ -220,12 +220,12 @@ public class LauncherBackAnimationController {
|
||||
return;
|
||||
}
|
||||
|
||||
mTransaction.show(mBackTarget.leash).apply();
|
||||
mTransaction.show(appTarget.leash).apply();
|
||||
mTransaction.setAnimationTransaction();
|
||||
mInitialTouchPos.set(backEvent.getTouchX(), backEvent.getTouchY());
|
||||
|
||||
// TODO(b/218916755): Offset start rectangle in multiwindow mode.
|
||||
mStartRect.set(mBackTarget.windowConfiguration.getMaxBounds());
|
||||
mStartRect.set(appTarget.windowConfiguration.getMaxBounds());
|
||||
mCurrentRect.set(mStartRect);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user