Commit a2adafd5 authored by caorong's avatar caorong Committed by Roman Donchenko

fix a bug(DetectorType never change)

changed line281 -> line220
Presentation:
because line 220 give the globle var mDetectorType,and in line 230 it will be compared with mDeteorType !!!  it will never be unequal ~
fix:
change mDetectorType(previous globle var) to a new local val tmpDetectorType
parent 27bff3c1
...@@ -215,9 +215,9 @@ public class FdActivity extends Activity implements CvCameraViewListener2 { ...@@ -215,9 +215,9 @@ public class FdActivity extends Activity implements CvCameraViewListener2 {
else if (item == mItemFace20) else if (item == mItemFace20)
setMinFaceSize(0.2f); setMinFaceSize(0.2f);
else if (item == mItemType) { else if (item == mItemType) {
mDetectorType = (mDetectorType + 1) % mDetectorName.length; int tmpDetectorType = (mDetectorType + 1) % mDetectorName.length;
item.setTitle(mDetectorName[mDetectorType]); item.setTitle(mDetectorName[tmpDetectorType]);
setDetectorType(mDetectorType); setDetectorType(tmpDetectorType);
} }
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment