From cb5d5dff69f3ac048e1ce88a8bde703c180c31fc Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 25 Aug 2016 15:10:28 +0100 Subject: [PATCH] Hopefully pause game on 'back' button --- .../java/com/rubenvandeven/emotionhero/GamingActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/rubenvandeven/emotionhero/GamingActivity.java b/app/src/main/java/com/rubenvandeven/emotionhero/GamingActivity.java index 069dd48..ea1b984 100644 --- a/app/src/main/java/com/rubenvandeven/emotionhero/GamingActivity.java +++ b/app/src/main/java/com/rubenvandeven/emotionhero/GamingActivity.java @@ -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() {