Fixed AlertDialog orientation

Fixed AlertDialog for screen orientation changes. Now AlertDialog won't dismiss when user rotate screen.