fixed onPause onResume SurfaceCreated SurfaceDestroyed problems