Merge pull request #1104 from Philoul/Fix/TreatmentProfileDialog
Fix Profile selected in ProfileDialog from Treatment
This commit is contained in:
commit
c22810736d
|
@ -244,7 +244,7 @@ class TreatmentsProfileSwitchFragment : DaggerFragment() {
|
|||
ProfileViewerDialog().also { pvd ->
|
||||
pvd.arguments = Bundle().also { args ->
|
||||
args.putLong("time", (it.tag as ProfileSealed).timestamp)
|
||||
args.putInt("mode", ProfileViewerDialog.Mode.DB_PROFILE.ordinal)
|
||||
args.putInt("mode", ProfileViewerDialog.Mode.RUNNING_PROFILE.ordinal)
|
||||
}
|
||||
pvd.show(childFragmentManager, "ProfileViewDialog")
|
||||
}
|
||||
|
@ -253,7 +253,7 @@ class TreatmentsProfileSwitchFragment : DaggerFragment() {
|
|||
ProfileViewerDialog().also { pvd ->
|
||||
pvd.arguments = Bundle().also { args ->
|
||||
args.putLong("time", (it.tag as ProfileSealed).timestamp)
|
||||
args.putInt("mode", ProfileViewerDialog.Mode.DB_PROFILE.ordinal)
|
||||
args.putInt("mode", ProfileViewerDialog.Mode.RUNNING_PROFILE.ordinal)
|
||||
}
|
||||
pvd.show(childFragmentManager, "ProfileViewDialog")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue