Hopefully pause game on 'back' button
This commit is contained in:
parent
a10f0ca2bd
commit
cb5d5dff69
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue