summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-10-12 18:44:50 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-10-12 12:07:06 +0000
commit5b4279d2dc0cef3f5b7280161af742564c62d581 (patch)
tree5a1e09abaa90b32da860a71ef2cb69567965fbd2
parent7bb4eb9a99567876f666e8c7530b26a2f76f1f5f (diff)
Allow seamless rotation on large screen with movable navbar
It doesn't change the current behavior, just make config more explicit for large screen. A test depending on shell transition is failed because its condition is stricter. Moreover, because the size of 3-button bar is almost the same as gestural mode which allows seamless rotation in large screen, it should use the same config as gestural mode. Bug: 249027315 Test: Enable shell transition, run atest SeamlessAppRotationTest on a large screen device. Change-Id: I3fbf4d8c8fa477746abd18fd40ad65f55dc14d8f
-rw-r--r--packages/overlays/NavigationBarMode3ButtonOverlay/res/values-sw600dp/config.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/overlays/NavigationBarMode3ButtonOverlay/res/values-sw600dp/config.xml b/packages/overlays/NavigationBarMode3ButtonOverlay/res/values-sw600dp/config.xml
new file mode 100644
index 000000000000..8e466e07047b
--- /dev/null
+++ b/packages/overlays/NavigationBarMode3ButtonOverlay/res/values-sw600dp/config.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2022, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources>
+ <!-- Controls whether seamless rotation should be allowed even though the navbar can move
+ (which normally prevents seamless rotation). Allow seamless rotation because the bar
+ is relatively small in large screen and its appearance is similar to gestural mode
+ even if it jumps to another side for display orientation change. -->
+ <bool name="config_allowSeamlessRotationDespiteNavBarMoving">true</bool>
+</resources>
+