Move add to top preference to task defaults

pull/1004/head
Alex Baker 4 years ago
parent 3f3643826b
commit ae6cfca8ec

@ -191,7 +191,6 @@ class Synchronization : InjectingPreferenceFragment() {
val syncEnabled = hasGoogleAccounts || hasCaldavAccounts
findPreference(R.string.accounts).isVisible = syncEnabled
findPreference(R.string.sync_SPr_interval_title).isVisible = syncEnabled
findPreference(R.string.p_add_to_top).isVisible = syncEnabled
}
override fun inject(component: FragmentComponent) = component.inject(this)

@ -182,7 +182,8 @@ object CustomIcons {
1157 to R.drawable.ic_fireplace_24px,
1158 to R.drawable.ic_outdoor_grill_24px,
1159 to R.drawable.ic_thumb_up_24px,
1160 to R.drawable.ic_thumb_down_24px
1160 to R.drawable.ic_thumb_down_24px,
1161 to R.drawable.ic_vertical_align_top_24px
)
@JvmStatic

@ -0,0 +1,5 @@
<vector android:autoMirrored="true" android:height="24dp"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M8,11h3v10h2V11h3l-4,-4 -4,4zM4,3v2h16V3H4z"/>
</vector>

@ -3,12 +3,6 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:key="@string/preference_screen">
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="@string/p_add_to_top"
android:title="@string/google_tasks_add_to_top"
app:isPreferenceVisible="false"/>
<PreferenceCategory
android:key="@string/accounts"
android:title="@string/accounts"

@ -2,6 +2,12 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreferenceCompat
android:icon="@drawable/ic_vertical_align_top_24px"
android:defaultValue="true"
android:key="@string/p_add_to_top"
android:title="@string/google_tasks_add_to_top" />
<Preference
android:icon="@drawable/ic_list_24px"
android:key="@string/p_default_remote_list"

Loading…
Cancel
Save