Loading services/core/java/com/android/server/wm/TaskStack.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -1931,8 +1931,12 @@ public class TaskStack extends WindowContainer<Task> implements public boolean setPinnedStackAlpha(float alpha) { public boolean setPinnedStackAlpha(float alpha) { // Hold the lock since this is called from the BoundsAnimator running on the UiThread // Hold the lock since this is called from the BoundsAnimator running on the UiThread synchronized (mWmService.mGlobalLock) { synchronized (mWmService.mGlobalLock) { getPendingTransaction().setAlpha(getSurfaceControl(), final SurfaceControl sc = getSurfaceControl(); mCancelCurrentBoundsAnimation ? 1 : alpha); if (sc == null || !sc.isValid()) { // If the stack is already removed, don't bother updating any stack animation return false; } getPendingTransaction().setAlpha(sc, mCancelCurrentBoundsAnimation ? 1 : alpha); scheduleAnimation(); scheduleAnimation(); return !mCancelCurrentBoundsAnimation; return !mCancelCurrentBoundsAnimation; } } Loading Loading
services/core/java/com/android/server/wm/TaskStack.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -1931,8 +1931,12 @@ public class TaskStack extends WindowContainer<Task> implements public boolean setPinnedStackAlpha(float alpha) { public boolean setPinnedStackAlpha(float alpha) { // Hold the lock since this is called from the BoundsAnimator running on the UiThread // Hold the lock since this is called from the BoundsAnimator running on the UiThread synchronized (mWmService.mGlobalLock) { synchronized (mWmService.mGlobalLock) { getPendingTransaction().setAlpha(getSurfaceControl(), final SurfaceControl sc = getSurfaceControl(); mCancelCurrentBoundsAnimation ? 1 : alpha); if (sc == null || !sc.isValid()) { // If the stack is already removed, don't bother updating any stack animation return false; } getPendingTransaction().setAlpha(sc, mCancelCurrentBoundsAnimation ? 1 : alpha); scheduleAnimation(); scheduleAnimation(); return !mCancelCurrentBoundsAnimation; return !mCancelCurrentBoundsAnimation; } } Loading