Add title to UnitConverterActivity and change close to back arrow
This commit is contained in:
parent
70a79a063c
commit
746874ff2a
|
@ -52,12 +52,13 @@ class UnitConverterActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.viewUnitConverter.viewConverter.root.setConverter(converter)
|
binding.viewUnitConverter.viewConverter.root.setConverter(converter)
|
||||||
|
binding.unitConverterToolbar.setTitle(converter.nameResId)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
|
|
||||||
setupToolbar(binding.unitConverterToolbar, NavigationIcon.Cross)
|
setupToolbar(binding.unitConverterToolbar, NavigationIcon.Arrow)
|
||||||
binding.viewUnitConverter.viewConverter.root.updateColors()
|
binding.viewUnitConverter.viewConverter.root.updateColors()
|
||||||
binding.viewUnitConverter.converterHolder.let { updateViewColors(it, getProperTextColor()) }
|
binding.viewUnitConverter.converterHolder.let { updateViewColors(it, getProperTextColor()) }
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ class UnitConverterPickerActivity : SimpleActivity() {
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
|
|
||||||
setupToolbar(binding.unitConverterPickerToolbar, NavigationIcon.Cross)
|
setupToolbar(binding.unitConverterPickerToolbar, NavigationIcon.Arrow)
|
||||||
|
|
||||||
if (config.preventPhoneFromSleeping) {
|
if (config.preventPhoneFromSleeping) {
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||||
|
|
Loading…
Reference in New Issue