Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b4279d2 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 7bb4eb9a
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<?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>