Use preference headers in settings (prep for identity support)
This commit is contained in:
@@ -1,31 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<Preference android:title="@string/pref_title_change_password" >
|
||||
<intent
|
||||
android:targetClass="i2p.bote.SetPasswordActivity"
|
||||
android:targetPackage="i2p.bote" />
|
||||
</Preference>
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="autoMailCheckEnabled"
|
||||
android:title="@string/pref_title_autoMail" />
|
||||
|
||||
<PreferenceCategory android:title="@string/pref_title_general" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="autoMailCheckEnabled"
|
||||
android:title="@string/pref_title_autoMail" />
|
||||
<i2p.bote.util.IntEditTextPreference
|
||||
android:defaultValue="30"
|
||||
android:dependency="autoMailCheckEnabled"
|
||||
android:key="mailCheckInterval"
|
||||
android:summary="@string/pref_summ_checkInterval"
|
||||
android:title="@string/pref_title_checkInterval" />
|
||||
|
||||
<i2p.bote.util.IntEditTextPreference
|
||||
android:defaultValue="30"
|
||||
android:dependency="autoMailCheckEnabled"
|
||||
android:key="mailCheckInterval"
|
||||
android:summary="@string/pref_summ_checkInterval"
|
||||
android:title="@string/pref_title_checkInterval" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="deliveryCheckEnabled"
|
||||
android:summary="@string/pref_summ_delivery"
|
||||
android:title="@string/pref_title_delivery" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="deliveryCheckEnabled"
|
||||
android:summary="@string/pref_summ_delivery"
|
||||
android:title="@string/pref_title_delivery" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/pref_title_privacy" >
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
17
res/xml/settings_headers.xml
Normal file
17
res/xml/settings_headers.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<preference-headers xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<header
|
||||
android:fragment="i2p.bote.SettingsActivity$SettingsFragment"
|
||||
android:title="@string/pref_title_general" >
|
||||
<extra
|
||||
android:name="settings"
|
||||
android:value="general" />
|
||||
</header>
|
||||
<header android:title="@string/pref_title_change_password" >
|
||||
<intent
|
||||
android:targetClass="i2p.bote.SetPasswordActivity"
|
||||
android:targetPackage="i2p.bote" />
|
||||
</header>
|
||||
|
||||
</preference-headers>
|
||||
16
res/xml/settings_headers_legacy.xml
Normal file
16
res/xml/settings_headers_legacy.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<Preference android:title="@string/pref_title_general" >
|
||||
<intent
|
||||
android:action="i2p.bote.PREFS_GENERAL"
|
||||
android:targetClass="i2p.bote.SettingsActivity"
|
||||
android:targetPackage="i2p.bote" />
|
||||
</Preference>
|
||||
<Preference android:title="@string/pref_title_change_password" >
|
||||
<intent
|
||||
android:targetClass="i2p.bote.SetPasswordActivity"
|
||||
android:targetPackage="i2p.bote" />
|
||||
</Preference>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user