kopia lustrzana https://github.com/ge0rg/aprsdroid
Export and UI IG Improvements
rodzic
ace40a97c1
commit
2d0a71fe14
|
@ -289,8 +289,13 @@ class TcpSocketThread(host: String, port: Int, timeout: Int, service: AprsServic
|
|||
|
||||
if (!aprsIstrafficEnabled) {
|
||||
// If the checkbox is enabled, perform the action
|
||||
service.addPost(StorageDatabase.Post.TYPE_IG, "APRS-IS Received", message)
|
||||
Log.d("IgateService", s"APRS-IS traffic enabled, post added: $message")
|
||||
if (message.startsWith("#")) {
|
||||
service.addPost(StorageDatabase.Post.TYPE_INFO, "APRS-IS", message)
|
||||
Log.d("IgateService", s"APRS-IS traffic enabled, post added: $message")
|
||||
} else {
|
||||
service.addPost(StorageDatabase.Post.TYPE_IG, "APRS-IS", message)
|
||||
Log.d("IgateService", s"APRS-IS traffic enabled, post added: $message")
|
||||
}
|
||||
} else {
|
||||
// If the checkbox is not enabled, skip the action
|
||||
Log.d("IgateService", "APRS-IS traffic disabled, skipping the post.")
|
||||
|
|
|
@ -66,7 +66,7 @@ class LogActivity extends MainListActivity("log", R.id.log) {
|
|||
//super.onListItemClick(l, v, position, id)
|
||||
val c = getListView().getItemAtPosition(position).asInstanceOf[Cursor]
|
||||
val t = c.getInt(COLUMN_TYPE)
|
||||
if (t != TYPE_POST && t != TYPE_INCMG && t != TYPE_DIGI)
|
||||
if (t != TYPE_POST && t != TYPE_INCMG && t != TYPE_DIGI && t != TYPE_IG)
|
||||
return
|
||||
val call = c.getString(COLUMN_MESSAGE).split(">")(0)
|
||||
Log.d(TAG, "onListItemClick: %s".format(call))
|
||||
|
|
|
@ -406,12 +406,12 @@ class StorageDatabase(context : Context) extends
|
|||
def getExportPosts(call : String) : Cursor = {
|
||||
if (call != null)
|
||||
getWritableDatabase().query(Post.TABLE, Post.COLUMNS,
|
||||
"type in (0, 3, 5) and message LIKE ?",
|
||||
"type in (0, 3, 5, 6) and message LIKE ?",
|
||||
Array("%s%%".format(call)),
|
||||
null, null, null, null)
|
||||
else
|
||||
getWritableDatabase().query(Post.TABLE, Post.COLUMNS,
|
||||
"type in (0, 3, 5)", null,
|
||||
"type in (0, 3, 5, 6)", null,
|
||||
null, null, null, null)
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue