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

Commit 268a573a authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Use separate resources to control orientation change for car and desk docks.



Also set default values to -1 (no orientation change).
Specific products should use overlays to customize dock orientation behavior.

Change-Id: Iae26939295842b9ac2f48fdcc23ea01dafec10fe
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent ccd064d4
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -70,8 +70,13 @@
    <!-- The number of degrees to rotate the display when the keyboard is open. -->
    <integer name="config_lidOpenRotation">90</integer>

    <!-- The number of degrees to rotate the display when the device is in a dock. -->
    <integer name="config_dockedRotation">90</integer>
    <!-- The number of degrees to rotate the display when the device is in a desk dock.
         A value of -1 means no change in orientation by default. -->
    <integer name="config_deskDockRotation">-1</integer>

    <!-- The number of degrees to rotate the display when the device is in a car dock.
         A value of -1 means no change in orientation by default. -->
    <integer name="config_carDockRotation">-1</integer>

    <!-- Indicate whether the lid state impacts the accessibility of
         the physical keyboard.  0 means it doesn't, 1 means it is accessible