I have a custom dialog with a gridview layout of options. After clicking on one of the options, a toast will be displayed and the dialog is supposed to close and another act