From a6cd8937f748d69c4ece7f21065f32b7c69fc702 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 1 Oct 2018 20:27:49 -0300 Subject: [PATCH] Remove space reserved for icons from preferences Works around https://issuetracker.google.com/issues/111907042 Might be replacable with a solution from https://issuetracker.google.com/issues/111907042 in the future. --- .../src/main/res/xml/panic_preferences.xml | 9 ++- briar-android/src/main/res/xml/settings.xml | 70 ++++++++++++------- 2 files changed, 52 insertions(+), 27 deletions(-) diff --git a/briar-android/src/main/res/xml/panic_preferences.xml b/briar-android/src/main/res/xml/panic_preferences.xml index b19d36545..67887eb26 100644 --- a/briar-android/src/main/res/xml/panic_preferences.xml +++ b/briar-android/src/main/res/xml/panic_preferences.xml @@ -1,12 +1,14 @@ + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + android:title="@string/panic_setting_signout_title" + app:iconSpaceReserved="false"/> + android:title="@string/purge_setting_title" + app:iconSpaceReserved="false"/> diff --git a/briar-android/src/main/res/xml/settings.xml b/briar-android/src/main/res/xml/settings.xml index 2865760de..1ed3c3630 100644 --- a/briar-android/src/main/res/xml/settings.xml +++ b/briar-android/src/main/res/xml/settings.xml @@ -1,6 +1,7 @@ + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> @@ -10,7 +11,8 @@ android:entryValues="@array/pref_language_values" android:key="pref_key_language" android:summary="%s" - android:title="@string/pref_language_title"/> + android:title="@string/pref_language_title" + app:iconSpaceReserved="false"/> - + android:title="@string/pref_theme_title" + app:iconSpaceReserved="false"/> + + android:title="@string/bluetooth_setting" + app:iconSpaceReserved="false"/> + android:title="@string/tor_network_setting" + app:iconSpaceReserved="false"/> + android:widgetLayout="@layout/preference_switch_compat" + app:iconSpaceReserved="false"/> @@ -63,7 +69,8 @@ android:persistent="false" android:summary="@string/pref_lock_summary" android:title="@string/pref_lock_title" - android:widgetLayout="@layout/preference_switch_compat"/> + android:widgetLayout="@layout/preference_switch_compat" + app:iconSpaceReserved="false"/> + android:title="@string/pref_lock_timeout_title" + app:iconSpaceReserved="false"/> + android:title="@string/change_password" + app:iconSpaceReserved="false"> + android:title="@string/panic_setting" + app:iconSpaceReserved="false"> + android:widgetLayout="@layout/preference_switch_compat" + app:iconSpaceReserved="false"/> + android:widgetLayout="@layout/preference_switch_compat" + app:iconSpaceReserved="false"/> + android:widgetLayout="@layout/preference_switch_compat" + app:iconSpaceReserved="false"/> + android:widgetLayout="@layout/preference_switch_compat" + app:iconSpaceReserved="false"/> + android:widgetLayout="@layout/preference_switch_compat" + app:iconSpaceReserved="false"/> + android:widgetLayout="@layout/preference_switch_compat" + app:iconSpaceReserved="false"/> + android:title="@string/notify_sound_setting" + app:iconSpaceReserved="false"/> + android:title="@string/feedback_settings_title"> + + - + + android:title="Create Test Data" + app:iconSpaceReserved="false"> + android:title="Crash" + app:iconSpaceReserved="false"/> -- GitLab