kopia lustrzana https://github.com/ge0rg/aprsdroid
View: explicitly cast for setVisibility
rodzic
9879d6f7bb
commit
0d1f94e296
|
@ -31,7 +31,7 @@ class MapAct extends MapActivity with UIHelper {
|
|||
lazy val allicons = this.getResources().getDrawable(R.drawable.allicons)
|
||||
lazy val db = StorageDatabase.open(this)
|
||||
lazy val staoverlay = new StationOverlay(allicons, this, db)
|
||||
lazy val loading = findViewById(R.id.loading)
|
||||
lazy val loading = findViewById(R.id.loading).asInstanceOf[View]
|
||||
lazy val targetcall = getTargetCall()
|
||||
|
||||
var showObjects = false
|
||||
|
|
|
@ -33,7 +33,7 @@ class StationActivity extends StationHelper(R.string.app_sta)
|
|||
locReceiver.startTask(null)
|
||||
|
||||
Array(R.id.map, R.id.qrzcom, R.id.aprsfi).foreach((id) => {
|
||||
findViewById(id).setOnClickListener(this)
|
||||
findViewById(id).asInstanceOf[View].setOnClickListener(this)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ class StationListAdapter(context : Context, prefs : PrefsWrapper,
|
|||
view.findViewById(R.id.station_call).asInstanceOf[TextView].setTextColor(color)
|
||||
view.findViewById(R.id.station_qrg).asInstanceOf[TextView].setTextColor(color)
|
||||
val qrg_visible = if (qrg != null && qrg != "") View.VISIBLE else View.GONE
|
||||
view.findViewById(R.id.station_qrg).setVisibility(qrg_visible)
|
||||
view.findViewById(R.id.station_qrg).asInstanceOf[View].setVisibility(qrg_visible)
|
||||
val MCD = 1000000.0
|
||||
android.location.Location.distanceBetween(my_lat/MCD, my_lon/MCD,
|
||||
lat/MCD, lon/MCD, dist)
|
||||
|
|
Ładowanie…
Reference in New Issue