Settings: Add rotation settings

* Links to LineageParts

Change-Id: I896c53089fca0ee3b0e867144bb1d72fe8946eaf
This commit is contained in:
Steve Kondik
2016-09-26 02:53:06 -07:00
committed by Michael Bestas
parent 5f81556f83
commit 0e30559b26
2 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
<?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.

View File

@@ -148,6 +148,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="@*lineageos.platform:bool/config_enableAdvancedRotationSettings"
settings:requiresFeature="android.hardware.sensor.accelerometer" />
<Preference
android:key="screen_resolution"
android:title="@string/screen_resolution_title"