Revert "Allow creating custom dialogs in DialogPreference."

This reverts commit 1d36da96c9557d61f541f20ce9169e4e047896af.