]> Pileus Git - ~andy/spades/blobdiff - src/Task.java
Fix .look bugs
[~andy/spades] / src / Task.java
index 34425d174781d23712c70fef661903d6729be0e5..26e0bd872343b7ce1a09c78755970ff5920d9ca6 100644 (file)
@@ -51,6 +51,7 @@ public class Task extends Service implements Runnable
                }
        }
 
+       @SuppressWarnings("deprecation")
        private void notify(String text, int icon)
        {
                // Notify Main
@@ -99,6 +100,16 @@ public class Task extends Service implements Runnable
        }
 
        /* Public methods */
+       public Message send(String dst, String txt)
+       {
+               if (this.client == null)
+                       return null;
+               Message msg = this.client.send(dst, txt);
+               if (msg != null)
+                       this.command(MESSAGE, msg);
+               return msg;
+       }
+
        public Message send(String txt)
        {
                if (this.client == null)
@@ -210,6 +221,7 @@ public class Task extends Service implements Runnable
        }
 
        @Override
+       @SuppressWarnings("deprecation")
        public void onStart(Intent intent, int startId)
        {
                Os.debug("Task: onStart");