Fixed AlertDialog orientation

Fixed AlertDialog for screen orientation changes. Now AlertDialog won't dismiss when user rotate screen.
And I also edited .gitignore file.