kopia lustrzana https://github.com/ge0rg/aprsdroid
reduce debug verbosity
rodzic
b9769f97e0
commit
a3f1eee4b8
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue