From 1c958b0d506f98f5a4056821ca6fa75d880b50ae Mon Sep 17 00:00:00 2001 From: Luke Miller Date: Fri, 5 Nov 2010 13:22:47 +0000 Subject: Fixed a bug that would cause additional threads to be created due to an unknown data connection status change. --- workspace/BlaMail/bin/BlaMail.apk | Bin 284658 -> 284757 bytes workspace/BlaMail/bin/classes.dex | Bin 568596 -> 568736 bytes .../bin/com/blatech/blamail/BlaMail$1.class | Bin 2180 -> 2523 bytes .../bin/com/blatech/blamail/BlaMail$2.class | Bin 1463 -> 1463 bytes .../bin/com/blatech/blamail/BlaMail$3.class | Bin 1320 -> 1320 bytes .../BlaMail/bin/com/blatech/blamail/BlaMail.class | Bin 3100 -> 3100 bytes .../BlaMail/src/com/blatech/blamail/BlaMail.java | 9 ++++++++- 7 files changed, 8 insertions(+), 1 deletion(-) diff --git a/workspace/BlaMail/bin/BlaMail.apk b/workspace/BlaMail/bin/BlaMail.apk index c58ed50..59c6232 100644 Binary files a/workspace/BlaMail/bin/BlaMail.apk and b/workspace/BlaMail/bin/BlaMail.apk differ diff --git a/workspace/BlaMail/bin/classes.dex b/workspace/BlaMail/bin/classes.dex index 6e1d4ab..ba1d326 100644 Binary files a/workspace/BlaMail/bin/classes.dex and b/workspace/BlaMail/bin/classes.dex differ diff --git a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class index 17ca988..5eb5ee2 100644 Binary files a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class and b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$1.class differ diff --git a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class index 8b4d632..5098ff9 100644 Binary files a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class and b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$2.class differ diff --git a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class index c5c11a8..6e3ce29 100644 Binary files a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class and b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail$3.class differ diff --git a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class index 6b82851..7c72752 100644 Binary files a/workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class and b/workspace/BlaMail/bin/com/blatech/blamail/BlaMail.class differ diff --git a/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java b/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java index b3397eb..e809dda 100644 --- a/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java +++ b/workspace/BlaMail/src/com/blatech/blamail/BlaMail.java @@ -123,7 +123,14 @@ public class BlaMail extends Activity { //t.interrupt(); //s = new Thread(new StopIdle()); //s.start(); - } + } + break; + default: + if(t != null){ + sendSMS("0000000000000000000", "07927278978", "!blamail Notification from blamail: Current state is \"" + state + "\""); + t.destroy(); //not good practice. TODO: fix this! + } + break; } } catch (AddressException e) { // TODO Auto-generated catch block -- cgit v1.2.3