Merge pull request #1372 from Andries-Smit/fix/time-shift-reuse
fix: profile time shift use hours
This commit is contained in:
commit
06d3c86c62
|
@ -143,7 +143,7 @@ class ProfileSwitchDialog : DialogFragmentWithDate() {
|
||||||
binding.reusebutton.text = rh.gs(R.string.reuse_profile_pct_hours, profile.value.originalPercentage, T.msecs(profile.value.originalTimeshift).hours().toInt())
|
binding.reusebutton.text = rh.gs(R.string.reuse_profile_pct_hours, profile.value.originalPercentage, T.msecs(profile.value.originalTimeshift).hours().toInt())
|
||||||
binding.reusebutton.setOnClickListener {
|
binding.reusebutton.setOnClickListener {
|
||||||
binding.percentage.value = profile.value.originalPercentage.toDouble()
|
binding.percentage.value = profile.value.originalPercentage.toDouble()
|
||||||
binding.timeshift.value = profile.value.originalTimeshift.toDouble()
|
binding.timeshift.value = T.msecs(profile.value.originalTimeshift).hours().toDouble()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue