]> rtime.felk.cvut.cz Git - orte.git/commitdiff
shape_android: Stop publishing fresh topics on App destroy
authorMartin Vajnar <martin@pracovni-debian>
Sun, 24 May 2015 21:30:48 +0000 (23:30 +0200)
committerMartin Vajnar <martin@pracovni-debian>
Sun, 24 May 2015 21:30:48 +0000 (23:30 +0200)
When application exits stop publishing new data by removing redraw
callback from handler.

orte/contrib/shape_android/src/org/ocera/orte/shape_android/PublisherActivity.java

index 05d76ff5c8d3fd8da905b903ee42cf58dcf49be3..557482de86fc4dcffbc4b5b7430902d090eee2d8 100644 (file)
@@ -172,6 +172,8 @@ public class PublisherActivity extends Activity {
        {
                super.onDestroy();
 
+               handler.removeCallbacks(redraw);
+
                for (PublisherShape shape : publisherView.shapes)
                        shape.killMe();