mirror of
https://github.com/gsantner/dandelion
synced 2025-12-09 05:41:12 +01:00
Added option to control screen rotation
This commit is contained in:
parent
dbafcc065c
commit
b62f8d32b7
7 changed files with 82 additions and 3 deletions
18
app/src/main/res/drawable/ic_screen_rotation_black_24px.xml
Normal file
18
app/src/main/res/drawable/ic_screen_rotation_black_24px.xml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
|
||||
<path
|
||||
android:pathData="M0 0h24v24H0z" />
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66 .03
|
||||
3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c-.59 .59 -.59
|
||||
1.54 0 2.12l12.02 12.02c.59 .59 1.54 .59 2.12 0l6.36-6.36c.59-.59 .59 -1.54
|
||||
0-2.12L10.23 1.75zm4.6 19.44L2.81 9.17l6.36-6.36 12.02 12.02-6.36 6.36zm-7.31
|
||||
.29 C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12
|
||||
24l.66-.03-3.81-3.81-1.33 1.32z" />
|
||||
</vector>
|
||||
|
|
@ -33,6 +33,7 @@
|
|||
<!-- Operability -->
|
||||
<string name="pref_title__topbar_stream_shortcut">Top toolbar loads stream</string>
|
||||
<string name="pref_desc__topbar_stream_shortcut">Click an empty space in the top toolbar to open the stream</string>
|
||||
<string name="pref_key__screen_rotation" translatable="false">pref_key__screen_rotation</string>
|
||||
|
||||
<!-- Navigiation Slider -->
|
||||
<string name="pref_key__visibility_nav__exit" translatable="false">pref_key__visibility_navslider__exit</string>
|
||||
|
|
@ -112,6 +113,25 @@
|
|||
<string name="pref_title__load_images">Load images</string>
|
||||
<string name="pref_desc__load_images">Toggle image loading to eg. safe mobile data</string>
|
||||
|
||||
<!-- Rotate Screen -->
|
||||
<string name="pref_title__screen_rotation">Screen rotation</string>
|
||||
<string name="pref_desc__screen_rotation">Control automatic screen rotation</string>
|
||||
<string name="rotation_val_auto" translatable="false">auto</string>
|
||||
<string name="rotation_val_portrait" translatable="false">portrait</string>
|
||||
<string name="rotation_val_landscape" translatable="false">landscape</string>
|
||||
<string name="rotation_auto">Automatic</string>
|
||||
<string name="rotation_portrait">Portrait</string>
|
||||
<string name="rotation_landscape">Landscape</string>
|
||||
<array name="pref_entries_values__screen_rotation" translatable="false">
|
||||
<item>@string/rotation_val_auto</item>
|
||||
<item>@string/rotation_val_portrait</item>
|
||||
<item>@string/rotation_val_landscape</item>
|
||||
</array>
|
||||
<array name="pref_entries__screen_rotation" translatable="false">
|
||||
<item>@string/rotation_auto</item>
|
||||
<item>@string/rotation_portrait</item>
|
||||
<item>@string/rotation_landscape</item>
|
||||
</array>
|
||||
<!-- Proxy -->
|
||||
<string name="pref_title__http_proxy_load_tor_preset">Load Tor Preset</string>
|
||||
<string name="pref_desc__http_proxy_load_tor_preset">Load proxy settings for Tor (Orbot) HTTP Proxy</string>
|
||||
|
|
|
|||
|
|
@ -67,6 +67,15 @@
|
|||
android:title="@string/pref_title__topbar_stream_shortcut"
|
||||
android:icon="@drawable/ic_touch_app_black_24px"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/rotation_val_auto"
|
||||
android:key="@string/pref_key__screen_rotation"
|
||||
android:title="@string/pref_title__screen_rotation"
|
||||
android:summary="@string/pref_desc__screen_rotation"
|
||||
android:entries="@array/pref_entries__screen_rotation"
|
||||
android:entryValues="@array/pref_entries_values__screen_rotation"
|
||||
android:icon="@drawable/ic_screen_rotation_black_24px"/>
|
||||
|
||||
</com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory>
|
||||
|
||||
<!-- Diaspora Pod Settings -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue