ShakeDetector: fix all warnings...

Signed-off-by: Harry Chen <373685963@qq.com>