From 488d615e897e1cb92818aa2c99701df35fa5e26f Mon Sep 17 00:00:00 2001 From: Naveen Date: Tue, 17 May 2022 05:57:03 +0530 Subject: [PATCH] Add tasks section in settings Moved "Allow creating tasks" setting from general section to tasks --- .../pro/activities/SettingsActivity.kt | 2 + app/src/main/res/layout/activity_settings.xml | 49 +++++++++++++------ 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/SettingsActivity.kt index 921096fc3..ec55c3284 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/SettingsActivity.kt @@ -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()) diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index a3841d4ea..f2fbbdb76 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -138,22 +138,6 @@ - - - - - - + + + + + + + + + + + +