From 746874ff2a7ba1194660eadbf3fdbf5fef3c7c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 12 Sep 2023 12:08:31 +0200 Subject: [PATCH] Add title to UnitConverterActivity and change close to back arrow --- .../calculator/activities/UnitConverterActivity.kt | 3 ++- .../calculator/activities/UnitConverterPickerActivity.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterActivity.kt index 7d0c8181..6f5b7b6f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterActivity.kt @@ -52,12 +52,13 @@ class UnitConverterActivity : SimpleActivity() { } binding.viewUnitConverter.viewConverter.root.setConverter(converter) + binding.unitConverterToolbar.setTitle(converter.nameResId) } override fun onResume() { super.onResume() - setupToolbar(binding.unitConverterToolbar, NavigationIcon.Cross) + setupToolbar(binding.unitConverterToolbar, NavigationIcon.Arrow) binding.viewUnitConverter.viewConverter.root.updateColors() binding.viewUnitConverter.converterHolder.let { updateViewColors(it, getProperTextColor()) } diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterPickerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterPickerActivity.kt index 09306eff..dcf5b7f2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterPickerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterPickerActivity.kt @@ -37,7 +37,7 @@ class UnitConverterPickerActivity : SimpleActivity() { override fun onResume() { super.onResume() - setupToolbar(binding.unitConverterPickerToolbar, NavigationIcon.Cross) + setupToolbar(binding.unitConverterPickerToolbar, NavigationIcon.Arrow) if (config.preventPhoneFromSleeping) { window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)