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() { protected void onResume() {
super.onResume(); super.onResume();
startDetector(); startDetector();
// should resume 'on face detection started'
} }
@Override @Override
protected void onPause() { protected void onPause() {
super.onPause(); super.onPause();
stopDetector(); stopDetector();
currentScenario.pause();
} }
void startDetector() { void startDetector() {