Changed the interface TouchModeListener to OnTouchModeChangedListener and its method touchModeChanged(int) to onTouchModeChanged(int).