altosdroid: Toast() requests don't need Bundles
authorMike Beattie <mike@ethernal.org>
Mon, 27 Aug 2012 07:39:53 +0000 (19:39 +1200)
committerMike Beattie <mike@ethernal.org>
Mon, 27 Aug 2012 07:39:53 +0000 (19:39 +1200)
Signed-off-by: Mike Beattie <mike@ethernal.org>
altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java

index 5631ffb7777346e291838e87fe6f9d10798fb5ff..33da93466ac14406fca341673bdad98ca33d8418 100644 (file)
@@ -63,10 +63,6 @@ public class AltosDroid extends Activity {
        public static final int MSG_INCOMING_TELEM  = 3;
        public static final int MSG_TOAST           = 4;
 
-       // Key names received from the TelemetryService Handler
-       public static final String KEY_DEVNAME = "key_devname";
-       public static final String KEY_TOAST   = "key_toast";
-
        // Intent request codes
        private static final int REQUEST_CONNECT_DEVICE = 1;
        private static final int REQUEST_ENABLE_BT      = 2;
@@ -131,7 +127,7 @@ public class AltosDroid extends Activity {
                        case MSG_TOAST:
                                Toast.makeText(
                                                ad.getApplicationContext(),
-                                               msg.getData().getString(KEY_TOAST),
+                                               (String) msg.obj,
                                                Toast.LENGTH_SHORT).show();
                                break;
                        }