send pending messages on every RX as well

messaging
Georg Lukas 2011-06-28 21:34:06 +02:00
rodzic 267e5967fb
commit 4aa6e9f346
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -327,7 +327,10 @@ class AprsService extends Service with LocationListener {
}
def postSubmit(post : String) {
handler.post { addPost(StorageDatabase.Post.TYPE_INCMG, "incoming", post) }
handler.post {
addPost(StorageDatabase.Post.TYPE_INCMG, "incoming", post)
sendPendingMessages()
}
}
def postAbort(post : String) {
@ -353,7 +356,7 @@ class AprsService extends Service with LocationListener {
val callssid = prefs.getCallSsid()
val c = db.getPendingMessages()
Log.d(TAG, "sendPendingMessages")
//Log.d(TAG, "sendPendingMessages")
c.moveToFirst()
while (!c.isAfterLast()) {
val ts = c.getLong(COLUMN_TS)