diff options
Diffstat (limited to 'services/core/java/com/android/server/am/ActivityManagerService.java')
-rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 2935bc0..2b65c18 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -8162,12 +8162,14 @@ public final class ActivityManagerService extends ActivityManagerNative } @Override - public void resizeStack(int stackBoxId, Rect bounds) { + public void resizeStack(int stackId, Rect bounds) { enforceCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS, "resizeStackBox()"); long ident = Binder.clearCallingIdentity(); try { - mWindowManager.resizeStack(stackBoxId, bounds); + synchronized (this) { + mStackSupervisor.resizeStackLocked(stackId, bounds); + } } finally { Binder.restoreCallingIdentity(ident); } |