Add tasks section in settings

Moved "Allow creating tasks" setting from general section to tasks
This commit is contained in:
Naveen 2022-05-17 05:57:03 +05:30
parent 2084259c5d
commit 488d615e89
2 changed files with 35 additions and 16 deletions

View File

@ -103,6 +103,7 @@ class SettingsActivity : SimpleActivity() {
settings_event_lists_label,
settings_widgets_label,
settings_events_label,
settings_tasks_label,
settings_migrating_label
).forEach {
it.setTextColor(getProperPrimaryColor())
@ -119,6 +120,7 @@ class SettingsActivity : SimpleActivity() {
settings_event_lists_holder,
settings_widgets_holder,
settings_events_holder,
settings_tasks_holder,
settings_migrating_holder
).forEach {
it.background.applyColorFilter(getProperBackgroundColor().getContrastColor())

View File

@ -138,22 +138,6 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_allow_creating_tasks_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ripple_background">
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_allow_creating_tasks"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/allow_creating_tasks" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_sunday_first_holder"
style="@style/SettingsHolderCheckboxStyle"
@ -942,6 +926,39 @@
</RelativeLayout>
</LinearLayout>
<TextView
android:id="@+id/settings_tasks_label"
style="@style/SettingsSectionLabelStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/tasks" />
<LinearLayout
android:id="@+id/settings_tasks_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/medium_margin"
android:background="@drawable/section_holder_stroke"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/settings_allow_creating_tasks_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ripple_all_corners">
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_allow_creating_tasks"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/allow_creating_tasks" />
</RelativeLayout>
</LinearLayout>
<TextView
android:id="@+id/settings_migrating_label"
style="@style/SettingsSectionLabelStyle"