i can't test it right now, but as i understand you broke test fro preference
try to create example for both, preference & standalone dialog