Loading native/jni/src/proximity_info_state.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -464,8 +464,8 @@ float ProximityInfoState::calculateNormalizedSquaredDistance( } int ProximityInfoState::getDuration(const int index) const { if (mInputSize > 0 && index > 0 && index < mInputSize - 1) { return mTimes[index + 1] - mTimes[index - 1]; if (mInputSize > 0 && index >= 0 && index < mInputSize - 1) { return mTimes[index + 1] - mTimes[index]; } return 0; } Loading Loading
native/jni/src/proximity_info_state.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -464,8 +464,8 @@ float ProximityInfoState::calculateNormalizedSquaredDistance( } int ProximityInfoState::getDuration(const int index) const { if (mInputSize > 0 && index > 0 && index < mInputSize - 1) { return mTimes[index + 1] - mTimes[index - 1]; if (mInputSize > 0 && index >= 0 && index < mInputSize - 1) { return mTimes[index + 1] - mTimes[index]; } return 0; } Loading