Add title to UnitConverterActivity and change close to back arrow

This commit is contained in:
Ensar Sarajčić 2023-09-12 12:08:31 +02:00
parent 70a79a063c
commit 746874ff2a
2 changed files with 3 additions and 2 deletions

View File

@ -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()) }

View File

@ -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)