Skip to content

Commit 3fc6195

Browse files
committed
Fix migrating label color
1 parent dd42ced commit 3fc6195

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/src/main/kotlin/org/fossify/clock/activities/SettingsActivity.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class SettingsActivity : SimpleActivity() {
111111
binding.settingsGeneralSettingsLabel,
112112
binding.settingsAlarmTabLabel,
113113
binding.settingsTimerTabLabel,
114+
binding.settingsMigratingLabel
114115
).forEach {
115116
it.setTextColor(getProperPrimaryColor())
116117
}
@@ -338,7 +339,7 @@ class SettingsActivity : SimpleActivity() {
338339
ExportDataDialog(this, config.lastDataExportPath) { file ->
339340
try {
340341
exportActivityResultLauncher.launch(file.name)
341-
} catch (@Suppress("SwallowedException") e: ActivityNotFoundException) {
342+
} catch (@Suppress("SwallowedException") _: ActivityNotFoundException) {
342343
toast(
343344
id = org.fossify.commons.R.string.system_service_disabled,
344345
length = Toast.LENGTH_LONG
@@ -352,7 +353,7 @@ class SettingsActivity : SimpleActivity() {
352353
private fun tryImportData() {
353354
try {
354355
importActivityResultLauncher.launch(IMPORT_BACKUP_MIME_TYPES.toTypedArray())
355-
} catch (@Suppress("SwallowedException") e: ActivityNotFoundException) {
356+
} catch (@Suppress("SwallowedException") _: ActivityNotFoundException) {
356357
toast(org.fossify.commons.R.string.system_service_disabled, Toast.LENGTH_LONG)
357358
} catch (e: Exception) {
358359
showErrorToast(e)

app/src/main/res/layout/activity_settings.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,17 +331,16 @@
331331
</RelativeLayout>
332332

333333
<include
334-
android:id="@+id/settings_timer_tab_divider"
334+
android:id="@+id/settings_migrating_divider"
335335
layout="@layout/divider" />
336336

337337
<TextView
338-
android:id="@+id/settings_export_and_import"
338+
android:id="@+id/settings_migrating_label"
339339
style="@style/SettingsSectionLabelStyle"
340340
android:layout_width="match_parent"
341341
android:layout_height="wrap_content"
342342
android:text="@string/migrating" />
343343

344-
345344
<RelativeLayout
346345
android:id="@+id/settings_export_data_holder"
347346
style="@style/SettingsHolderTextViewOneLinerStyle"

0 commit comments

Comments
 (0)