Hopefully pause game on 'back' button

This commit is contained in:
Ruben 2016-08-25 15:10:28 +01:00
parent a10f0ca2bd
commit cb5d5dff69
1 changed files with 2 additions and 1 deletions

View File

@ -168,13 +168,14 @@ public class GamingActivity extends AppCompatActivity implements Detector.ImageL
protected void onResume() {
super.onResume();
startDetector();
// should resume 'on face detection started'
}
@Override
protected void onPause() {
super.onPause();
stopDetector();
currentScenario.pause();
}
void startDetector() {