From 34a7f194a628bb0f2235025aaf8acbf1c03ed234 Mon Sep 17 00:00:00 2001 From: Chris Li Date: Thu, 24 Jun 2021 14:47:55 -0700 Subject: [PATCH] Compare min width/height with the longest screen side Since we only support 30/70 split in portrait and 50/50 split in landscape, compare activity min width/height with those only. Bug: 189180596 Test: manually with Calculator Change-Id: I521785768fa7e01b2da3b8efd2ff39d31b3ceb7e --- core/res/res/values/config.xml | 16 ++++-- core/res/res/values/symbols.xml | 1 + .../server/wm/ActivityTaskManagerService.java | 22 ++++++-- .../android/server/wm/TaskDisplayArea.java | 18 +++++-- .../wm/ActivityTaskManagerServiceTests.java | 51 ++++++++++++++++--- .../server/wm/SystemServicesTestRule.java | 3 +- 6 files changed, 89 insertions(+), 22 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 67d29b5ee2b77..646fbd3978fd9 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -3587,13 +3587,21 @@ --> 0 - - 0.3 + 0.3 + + + 0.5