Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
fix(android): crash fix for android sdk < 18 (#2674)
Browse files Browse the repository at this point in the history
Co-authored-by: Cristiano Coelho <cristianocca@hotmail.com>
  • Loading branch information
2 people authored and sibelius committed Jan 13, 2020
1 parent b575388 commit dea3371
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@ public void onDisplayOrientationChanged(int displayOrientation, int deviceOrient

public void cleanup(){
if(mBgThread != null){
mBgThread.quitSafely();
if(Build.VERSION.SDK_INT < 18){
mBgThread.quit();
}
else{
mBgThread.quitSafely();
}

mBgThread = null;
}
}
Expand Down

0 comments on commit dea3371

Please sign in to comment.