Fix bug where preferences changes are not applied

Restart all the activities inheriting from `NavigationDrawerActivity` whenever there is a preference change to ensure that we load the new preferences properly. I also fixed a bug where longclick is erroneously detected when the navigation drawer is opened