fix(android): crash fix for android sdk < 18 (#2674)

Co-authored-by: Cristiano Coelho <cristianocca@hotmail.com>
This commit is contained in:
cristianoccazinsp 2020-01-13 14:41:29 -03:00 committed by Sibelius Seraphini
parent b57538827c
commit dea33716aa

View File

@ -146,7 +146,13 @@ public class CameraView extends FrameLayout {
public void cleanup(){
if(mBgThread != null){
mBgThread.quitSafely();
if(Build.VERSION.SDK_INT < 18){
mBgThread.quit();
}
else{
mBgThread.quitSafely();
}
mBgThread = null;
}
}