Hopefully pause game on 'back' button

This commit is contained in:
Ruben 2016-08-25 15:10:28 +01:00
parent a10f0ca2bd
commit cb5d5dff69

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() {