Refactor - Activity Gesture Detector as nested class.