diff --git a/src/MapAct.scala b/src/MapAct.scala index 4cf2cc1..4a7b608 100644 --- a/src/MapAct.scala +++ b/src/MapAct.scala @@ -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 diff --git a/src/StationActivity.scala b/src/StationActivity.scala index 074a947..28aa6a9 100644 --- a/src/StationActivity.scala +++ b/src/StationActivity.scala @@ -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) }) } diff --git a/src/StationListAdapter.scala b/src/StationListAdapter.scala index 9165b5e..5ac85a0 100644 --- a/src/StationListAdapter.scala +++ b/src/StationListAdapter.scala @@ -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)