endSessionDialog: Use DialogType constants instead of magic numbers