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() {
|
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() {
|
||||||
|
|
Loading…
Reference in a new issue