@@ -38,11 +38,9 @@ import joshuatee.wx.spc.SpcMesoActivity
3838import joshuatee.wx.spc.SpcSoundingsActivity
3939import joshuatee.wx.spc.SpcThunderStormOutlookActivity
4040import joshuatee.wx.ui.CardHSImage
41- import joshuatee.wx.util.SoundingSites
4241import joshuatee.wx.vis.GoesActivity
4342import joshuatee.wx.wpc.NationalImagesActivity
4443import joshuatee.wx.wpc.NationalTextActivity
45- import java.util.Locale
4644
4745internal object UtilityHomeScreen {
4846
@@ -79,15 +77,14 @@ internal object UtilityHomeScreen {
7977 homeScreenImageCards[ii].connect {
8078 if (argsOrig != null ) {
8179 val args = argsOrig.copyOf(argsOrig.size)
82- args.indices.forEach { z ->
83- if (args[z] == " WFO_FOR_SND" ) // Check that this is not needed TODO FIXME
84- args[z] = SoundingSites .sites.getNearest(Location .latLon)
85- // args[z] = UtilityLocation.getNearestSoundingSite(LatLon(Location.x, Location.y))
86- if (args[z] == " WFO_FOR_GOES" )
87- args[z] = Location .wfo.lowercase(Locale .US )
88- if (args[z] == " RID_FOR_CA" )
89- args[z] = Location .rid
90- }
80+ // args.indices.forEach { z ->
81+ // if (args[z] == "WFO_FOR_SND")
82+ // args[z] = SoundingSites.sites.getNearest(Location.latLon)
83+ // if (args[z] == "WFO_FOR_GOES")
84+ // args[z] = Location.wfo.lowercase(Locale.US)
85+ // if (args[z] == "RID_FOR_CA")
86+ // args[z] = Location.rid
87+ // }
9188 if (cl != null && id != null ) {
9289 val intent = Intent (MyApplication .appContext, cl)
9390 intent.putExtra(id, args)
@@ -165,12 +162,13 @@ internal object UtilityHomeScreen {
165162 classId[" GOES16" ] = GoesActivity .RID
166163
167164 classes[" SND" ] = SpcSoundingsActivity ::class .java
168- classArgs[" SND" ] = arrayOf(" WFO_FOR_SND" , " " )
165+ // classArgs["SND"] = arrayOf("WFO_FOR_SND", "")
166+ classArgs[" SND" ] = arrayOf(" " , " " )
169167 classId[" SND" ] = SpcSoundingsActivity .URL
170168
171- classes[" OBS" ] = SpcSoundingsActivity ::class .java
172- classArgs[" OBS" ] = arrayOf(" " , " " )
173- classId[" OBS" ] = SpcSoundingsActivity .URL
169+ // classes["OBS"] = SpcSoundingsActivity::class.java
170+ // classArgs["OBS"] = arrayOf("", "")
171+ // classId["OBS"] = SpcSoundingsActivity.URL
174172
175173 classes[" RTMA_DEW" ] = RtmaActivity ::class .java
176174 classArgs[" RTMA_DEW" ] = arrayOf(" 2m_dwpt" )
0 commit comments