Updated Activity switching and touch handling

Added a check in MagicActivity and RegularActivity if they should switch
to one another or not.
Replaced the GestureDetector in the MagicActivity with own
implementation because of limitations found.