Refactored EditTextDialogFragment class from Lpg Conversion Cost stuff.