diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 186: Android: Kill the app process when pausing.

Message ID 20120117154213.3322.75901.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org Jan. 17, 2012, 3:42 p.m. UTC
------------------------------------------------------------
revno: 186
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Tue 2012-01-17 16:40:18 +0200
message:
  Android: Kill the app process when pausing.
  
  As we don't handle the pause/resume cycle properly at this point, this is the
  sanest thing to do.
modified:
  android/src/org/linaro/glmark2/Glmark2Activity.java


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'android/src/org/linaro/glmark2/Glmark2Activity.java'
--- android/src/org/linaro/glmark2/Glmark2Activity.java	2012-01-13 21:14:04 +0000
+++ android/src/org/linaro/glmark2/Glmark2Activity.java	2012-01-17 14:40:18 +0000
@@ -37,6 +37,8 @@ 
     protected void onPause() {
         super.onPause();
         mGLView.onPause();
+        Glmark2Activity.this.finish();
+        android.os.Process.killProcess(android.os.Process.myPid());
     }
 
     @Override