Where to handle user's input data in DialogPreference inherited class?
<p>I  have custom <code>DialogPreference</code> of two <code>EditText</code> views and do comparison of those in <code>onDialogClosed()</code> which doesn't work for me because in case <code>strings</code> are not equal I can not stop <code>dialog</code> closure, so I need the method before <code>onDialogClosed()</code> to make these comparisons and then decide whether to call <code>onDialogClosed()</code> or not.</p>

<p>So, any other good place to make comparisons or ability to cancel dialog closure?</p>
