Fix trigger sensor lifecycle

Make sure the mRegistered flag is updated early enough, so we don't
call cancel if we are not registered.

Bug: 23105138
Change-Id: I1feeab9ea3d0ca31eb5deaab97f6de2cfc4c3b3d
1 file changed