summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2017-07-13 02:31:59 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-13 02:31:59 +0000
commit6ee45928e307e2cad59dc367f569ee407b45366f (patch)
tree5c4fa78ec38debe1e1715de26e0e1b8126c729d3
parentf0d0b22316d06b3fb9f954fefd3a70fefd1ef03c (diff)
parentae56a905413c8f7a6a13a03da49c712ce1759509 (diff)
Merge "Do not apply maxAspectRatio to bounds when in VR mode." into oc-dr1-dev am: a781d471e2
am: ae56a90541 Change-Id: I88b6daeec2a6770ab31e0ab661448968597fcdf5
-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 4a573691b656..5ed307d62359 100644
--- a/services/core/java/com/android/server/am/ActivityRecord.java
+++ b/services/core/java/com/android/server/am/ActivityRecord.java
@@ -2303,10 +2303,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;
}