CareDialog.kt: Enable notes when saving activities

Allows notes (e.g. type of sport, intensity, etc.) when logging activities.
This commit is contained in:
swissalpine 2021-01-23 14:12:12 +01:00 committed by GitHub
parent 69554754b7
commit d66ed2459d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@ class CareDialog : DialogFragmentWithDate() {
}
binding.duration.setParams(savedInstanceState?.getDouble("duration")
?: 0.0, 0.0, Constants.MAX_PROFILE_SWITCH_DURATION, 10.0, DecimalFormat("0"), false, binding.okcancel.ok)
if (options == EventType.NOTE || options == EventType.QUESTION || options == EventType.ANNOUNCEMENT)
if (options == EventType.NOTE || options == EventType.QUESTION || options == EventType.ANNOUNCEMENT || options == EventType.EXERCISE)
binding.notesLayout.root.visibility = View.VISIBLE // independent to preferences
}