reduce debug verbosity

service_trace
Georg Lukas 2011-07-15 01:21:53 +02:00
rodzic b9769f97e0
commit a3f1eee4b8
2 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -181,7 +181,6 @@ class StationOverlay(icons : Drawable, context : MapAct, db : StorageDatabase) e
override def draw(c : Canvas, m : MapView, shadow : Boolean) : Unit = {
if (shadow) return;
Benchmark("draw") {
val fontSize = symbolSize*3/4
val textPaint = new Paint()
@ -233,7 +232,6 @@ class StationOverlay(icons : Drawable, context : MapAct, db : StorageDatabase) e
}
}
}
}
}
def addStation(sta : Station) {

Wyświetl plik

@ -290,7 +290,7 @@ class StorageDatabase(context : Context) extends
def getNeighbors(mycall : String, lat : Int, lon : Int, ts : Long, limit : String) : Cursor = {
// calculate latitude correction
val corr = (cos(Pi*lat/180000000.)*cos(Pi*lat/180000000.)*100).toInt
Log.d(TAG, "getNeighbors: correcting by %d".format(corr))
//Log.d(TAG, "getNeighbors: correcting by %d".format(corr))
// add a distance column to the query
val newcols = Station.COLUMNS :+ Station.COL_DIST.format(lat, lat, lon, lon, corr)
getReadableDatabase().query(Station.TABLE, newcols,