From 2542d6fa5962db581e0521b3e0b180adc37ff03b Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 25 Dec 2022 22:26:20 +0100 Subject: [PATCH] flattening the reminder activity --- .../clock/activities/ReminderActivity.kt | 12 +- app/src/main/res/layout/activity_reminder.xml | 247 ++++++++---------- 2 files changed, 119 insertions(+), 140 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/activities/ReminderActivity.kt b/app/src/main/kotlin/com/simplemobiletools/clock/activities/ReminderActivity.kt index 8a3ad185..880e2a31 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/activities/ReminderActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/activities/ReminderActivity.kt @@ -21,7 +21,10 @@ import com.simplemobiletools.clock.helpers.ALARM_ID import com.simplemobiletools.clock.helpers.getPassedSeconds import com.simplemobiletools.clock.models.Alarm import com.simplemobiletools.commons.extensions.* -import com.simplemobiletools.commons.helpers.* +import com.simplemobiletools.commons.helpers.MINUTE_SECONDS +import com.simplemobiletools.commons.helpers.SILENT +import com.simplemobiletools.commons.helpers.isOreoMr1Plus +import com.simplemobiletools.commons.helpers.isOreoPlus import kotlinx.android.synthetic.main.activity_reminder.* class ReminderActivity : SimpleActivity() { @@ -40,10 +43,12 @@ class ReminderActivity : SimpleActivity() { private var dragDownX = 0f override fun onCreate(savedInstanceState: Bundle?) { + isMaterialActivity = true super.onCreate(savedInstanceState) setContentView(R.layout.activity_reminder) showOverLockscreen() updateTextColors(reminder_holder as ViewGroup) + updateStatusbarColor(getProperBackgroundColor()) val id = intent.getIntExtra(ALARM_ID, -1) isAlarmReminder = id != -1 @@ -73,11 +78,6 @@ class ReminderActivity : SimpleActivity() { setupEffects() } - override fun onResume() { - super.onResume() - setupToolbar(reminder_toolbar) - } - private fun setupButtons() { if (isAlarmReminder) { setupAlarmButtons() diff --git a/app/src/main/res/layout/activity_reminder.xml b/app/src/main/res/layout/activity_reminder.xml index 780bb1f5..4a143acd 100644 --- a/app/src/main/res/layout/activity_reminder.xml +++ b/app/src/main/res/layout/activity_reminder.xml @@ -1,149 +1,128 @@ - - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - +