From bbd06a0d2ae8daf4ca142128665ce2358ea77a62 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sat, 27 Jul 2019 21:51:37 +0200 Subject: [PATCH] set SwitchPreferenceCompat titles to multiline (#1421) --- app/build.gradle | 2 +- app/src/main/res/xml/account_preferences.xml | 10 +++++++--- app/src/main/res/xml/preferences.xml | 15 ++++++++++----- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 922d9ed2..cd1b909c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -102,7 +102,7 @@ dependencies { implementation 'com.google.android.material:material:1.1.0-alpha05' implementation 'androidx.exifinterface:exifinterface:1.0.0' implementation 'androidx.cardview:cardview:1.0.0' - implementation 'androidx.preference:preference:1.1.0-alpha04' + implementation 'androidx.preference:preference:1.1.0-rc01' implementation "com.squareup.retrofit2:retrofit:$retrofitVersion" implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion" implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion" diff --git a/app/src/main/res/xml/account_preferences.xml b/app/src/main/res/xml/account_preferences.xml index 1f93eaca..dff44b9f 100644 --- a/app/src/main/res/xml/account_preferences.xml +++ b/app/src/main/res/xml/account_preferences.xml @@ -1,5 +1,6 @@ + android:title="@string/pref_default_media_sensitivity" + app:singleLineTitle="false" /> + android:title="@string/pref_title_show_media_preview" + app:singleLineTitle="false" /> + android:title="@string/pref_title_alway_show_sensitive_media" + app:singleLineTitle="false" /> diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index e8af4a75..b565d4a9 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -39,27 +39,32 @@ + android:title="@string/pref_title_hide_follow_button" + app:singleLineTitle="false" /> + android:title="@string/pref_title_absolute_time" + app:singleLineTitle="false" /> + android:title="@string/pref_title_bot_overlay" + app:singleLineTitle="false" /> + android:title="@string/pref_title_animate_gif_avatars" + app:singleLineTitle="false" /> + android:title="@string/pref_title_show_notifications_filter" + app:singleLineTitle="false" />