Fixed NPE after screen rotation in Locus not installed dialog
Minor refactoring of DialogFragments
Trying to adapt on screen size in MainActivity

Minor refactoring of dialog activities.