Extension to Android's DialogFragment class.