I assume you can only call onAddEditTextToDialogView only once? An easy way would be to try to call it twice. However, it can simply overwrite what you already have. The documentation does not indicate what happens when this method is called multiple times.
EditTextPreference comes from the DialogPreference dialog. You can create your own DialogPreference dialog with several TextFields, and when you click OK, save them with the appropriate settings. It has to be the way to go.
Inside EditTextPreference there is also onBindDialogView (View). You can get away from trying to add your second EditText here, but this can be problematic. The last resort.
source share