From e73818a791538892fcabfd5cca8c7db20f05fa67 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 20 Feb 2022 21:19:31 +0100 Subject: [PATCH] adding an initial Task activity --- app/src/main/AndroidManifest.xml | 5 ++++ .../calendar/pro/activities/TaskActivity.kt | 22 +++++++++++++++ app/src/main/res/layout/activity_task.xml | 28 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/TaskActivity.kt create mode 100644 app/src/main/res/layout/activity_task.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9590c0462..044bfc92c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -139,6 +139,11 @@ + + diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/TaskActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/TaskActivity.kt new file mode 100644 index 000000000..da7440f31 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/TaskActivity.kt @@ -0,0 +1,22 @@ +package com.simplemobiletools.calendar.pro.activities + +import android.os.Bundle +import android.view.Menu +import com.simplemobiletools.calendar.pro.R +import com.simplemobiletools.commons.extensions.checkAppSideloading + +class TaskActivity : SimpleActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_task) + + if (checkAppSideloading()) { + return + } + } + + override fun onCreateOptionsMenu(menu: Menu): Boolean { + updateMenuItemColors(menu, true) + return true + } +} diff --git a/app/src/main/res/layout/activity_task.xml b/app/src/main/res/layout/activity_task.xml new file mode 100644 index 000000000..1013e2a91 --- /dev/null +++ b/app/src/main/res/layout/activity_task.xml @@ -0,0 +1,28 @@ + + + + + + + + +