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

Unverified Commit a66c0083 authored by Steve Kondik's avatar Steve Kondik Committed by Michael Bestas
Browse files

Settings: Add rotation settings

 * Links to LineageParts

Change-Id: I896c53089fca0ee3b0e867144bb1d72fe8946eaf
parent bea4446a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2020-2021 The LineageOS Project
     Copyright (C) 2020-2024 The LineageOS Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -18,4 +18,7 @@
    <string-array name="config_ignored_backup_transports" translatable="false">
        <item>com.android.localtransport/.LocalTransport</item>
    </string-array>

    <!-- Whether to show advanced display rotation settings -->
    <bool name="config_show_advanced_rotation_settings">true</bool>
</resources>
+6 −0
Original line number Diff line number Diff line
@@ -125,6 +125,12 @@
            settings:keywords="@string/keywords_auto_rotate"
            settings:controller="com.android.settings.display.DeviceStateAutoRotateOverviewController"/>

        <lineageos.preference.LineagePartsPreference
            android:key="rotation"
            settings:replacesKey="auto_rotate"
            settings:requiresConfig="@*com.android.settings:bool/config_show_advanced_rotation_settings"
            settings:requiresFeature="android.hardware.sensor.accelerometer" />

        <Preference
            android:key="screen_resolution"
            android:title="@string/screen_resolution_title"