diff options
| author | Chris Li <lihongyu@google.com> | 2021-04-27 17:30:58 -0700 |
|---|---|---|
| committer | Chris Li <lihongyu@google.com> | 2021-04-27 23:59:38 -0700 |
| commit | cde271685f55a2dac2cf82fa82298a6b8bad1a8d (patch) | |
| tree | f858cc2c3ed885aa47d26de404e034a33b8a3039 /core/java/android/app/ActivityTaskManager.java | |
| parent | 3dfc4cd49805f7f1dbce2392298215fbd5e4de4b (diff) | |
Determine whether to support activities in multi window (1/n)
Add a field of supportsMultiWindow to TaskInfo for WM Shell to use.
Because we will change to Task#supportsMultiWindow to check the
support based on the root activity's resizibilty, min widht/height,
and the device settings, using this to replace the check in
ActivityTaskManager, which is pure device settings.
Bug: 176061101
Test: atest WMShellFlickerTests
Change-Id: Iad94b39506e71b6224d923f02bd7fc454cae02c8
Diffstat (limited to 'core/java/android/app/ActivityTaskManager.java')
| -rw-r--r-- | core/java/android/app/ActivityTaskManager.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/core/java/android/app/ActivityTaskManager.java b/core/java/android/app/ActivityTaskManager.java index 6df9f4da7ae8..4a7fcd232ce9 100644 --- a/core/java/android/app/ActivityTaskManager.java +++ b/core/java/android/app/ActivityTaskManager.java @@ -349,20 +349,6 @@ public class ActivityTaskManager { } /** - * Whether to allow non-resizable apps to be shown in multi-window. The app will be letterboxed - * if the request orientation is not met, and will be shown in size-compat mode if the container - * size has changed. - * @hide - */ - public static boolean supportsNonResizableMultiWindow() { - try { - return ActivityTaskManager.getService().supportsNonResizableMultiWindow(); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - - /** * @return whether the UI mode of the given config supports error dialogs (ANR, crash, etc). * @hide */ |
