Disable some unimplemented pref

This commit is contained in:
Benoit Marty 2019-06-26 17:43:36 +02:00
parent ad3d303405
commit 9fd9124643
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- Created to detect what has to be implemented (especially in the settings) -->
<bool name="false_not_implemented">false</bool>

</resources>

View File

@ -10,6 +10,7 @@


<im.vector.riotredesign.core.preference.VectorPreference <im.vector.riotredesign.core.preference.VectorPreference
android:layout_width="match_parent" android:layout_width="match_parent"
android:enabled="@bool/false_not_implemented"
android:icon="@drawable/ic_settings_root_flair" android:icon="@drawable/ic_settings_root_flair"
android:title="@string/settings_flair" android:title="@string/settings_flair"
app:fragment="im.vector.riotredesign.features.settings.VectorSettingsFlair" /> app:fragment="im.vector.riotredesign.features.settings.VectorSettingsFlair" />
@ -29,6 +30,7 @@


<im.vector.riotredesign.core.preference.VectorPreference <im.vector.riotredesign.core.preference.VectorPreference
android:layout_width="match_parent" android:layout_width="match_parent"
android:enabled="@bool/false_not_implemented"
android:icon="@drawable/ic_settings_root_call" android:icon="@drawable/ic_settings_root_call"
android:title="@string/preference_voice_and_video" android:title="@string/preference_voice_and_video"
app:fragment="im.vector.riotredesign.features.settings.VectorSettingsVoiceVideo" /> app:fragment="im.vector.riotredesign.features.settings.VectorSettingsVoiceVideo" />
@ -36,6 +38,7 @@
<!-- TODO Ignored users icon --> <!-- TODO Ignored users icon -->
<im.vector.riotredesign.core.preference.VectorPreference <im.vector.riotredesign.core.preference.VectorPreference
android:layout_width="match_parent" android:layout_width="match_parent"
android:enabled="@bool/false_not_implemented"
android:icon="@drawable/ic_settings_root_legacy" android:icon="@drawable/ic_settings_root_legacy"
android:title="@string/settings_ignored_users" android:title="@string/settings_ignored_users"
app:fragment="im.vector.riotredesign.features.settings.VectorSettingsIgnoredUsers" /> app:fragment="im.vector.riotredesign.features.settings.VectorSettingsIgnoredUsers" />