public void onDeactivate() { checkNewState(State.DEACTIVATED); _sensorManager.unregisterListener(this, _sensor); if (DEBUG) Log.d(TAG, "onDeactivate()"); super.onDeactivate(); }
@Override public void onDeactivate() { checkNewState(Input.State.DEACTIVATED); getContext().unregisterReceiver(_smsBroadcastReceiver); super.onDeactivate(); }