diff options
author | Wale Ogunwale <ogunwale@google.com> | 2015-01-23 16:05:07 -0800 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2015-01-27 07:50:58 -0800 |
commit | 60454dbc4d815c90ff2713e224953d6547fc3ad5 (patch) | |
tree | 94e4368506d8c3438702f40e78ed29c78d1a43e8 /services/core/java/com/android/server/am/ActivityManagerService.java | |
parent | 6c67474dd4f6eb0894121dac67e797073a02980a (diff) | |
download | frameworks_base-60454dbc4d815c90ff2713e224953d6547fc3ad5.zip frameworks_base-60454dbc4d815c90ff2713e224953d6547fc3ad5.tar.gz frameworks_base-60454dbc4d815c90ff2713e224953d6547fc3ad5.tar.bz2 |
Support activities in the same process having different resources.
Activities can be of various sizes in a multi-window environment.
This change allows them to have override configurations that allows
different resources to the loaded if needed.
Bug: 19002213
Change-Id: Ib2c7be0b427f5ce05e7a362bcdd496ddbc9164f0
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); } |