summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Bryce Lee <brycelee@google.com> 2017-07-13 02:24:59 +0000
committer android-build-merger <android-build-merger@google.com> 2017-07-13 02:24:59 +0000
commitae56a905413c8f7a6a13a03da49c712ce1759509 (patch)
tree0502d247e2487eaa7bd2512deb367e1a3c0750cc
parent56234469266098353c57dc768dda0f2dcb179027 (diff)
parenta781d471e2a9ac3f4e99934cd7e4b276f21b3493 (diff)
Merge "Do not apply maxAspectRatio to bounds when in VR mode." into oc-dr1-dev
am: a781d471e2 Change-Id: If9c5c4a01bd11d71ba2e755b8b823a9acd013333
-rw-r--r--services/core/java/com/android/server/am/ActivityRecord.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/ActivityRecord.java b/services/core/java/com/android/server/am/ActivityRecord.java
index 6a8f6d35c7c0..e668c1f4ec4c 100644
--- a/services/core/java/com/android/server/am/ActivityRecord.java
+++ b/services/core/java/com/android/server/am/ActivityRecord.java
@@ -2319,10 +2319,12 @@ final class ActivityRecord extends ConfigurationContainer implements AppWindowCo
outBounds.setEmpty();
final float maxAspectRatio = info.maxAspectRatio;
final ActivityStack stack = getStack();
- if (task == null || stack == null || !task.mFullscreen || maxAspectRatio == 0) {
+ if (task == null || stack == null || !task.mFullscreen || maxAspectRatio == 0
+ || isInVrUiMode(getConfiguration())) {
// We don't set override configuration if that activity task isn't fullscreen. I.e. the
// activity is in multi-window mode. Or, there isn't a max aspect ratio specified for
- // the activity. This is indicated by an empty {@link outBounds}.
+ // the activity. This is indicated by an empty {@link outBounds}. We also don't set it
+ // if we are in VR mode.
return;
}