Skip to content

Commit

Permalink
fixed displayHold typo - should help resolve crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ELY3M committed Aug 21, 2022
1 parent a57f013 commit 634088b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/joshuatee/wx/radar/WXGLRender.kt
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,12 @@ class WXGLRender(private val context: Context, val paneNumber: Int) : Renderer {
//
// Draw Nexrad radar
//
//elys mod
//elys mod
//show/hide radar
UtilityLog.d("radarshow", "displayHold: " + displayHold)
UtilityLog.d("radarshow", "showRadarWhenPan: " + RadarPreferences.showRadarWhenPan)
UtilityLog.d("radarshow", "showradar: " + RadarPreferences.showRadar)
if ((RadarPreferences.showRadar) || (displayHold && !RadarPreferences.showRadarWhenPan)) {
//if (displayHold && !RadarPreferences.showRadarWhenPan) {
if ((RadarPreferences.showRadar) && (!(displayHold && !RadarPreferences.showRadarWhenPan))) {
//org
//if (!(displayHold && !RadarPreferences.showRadarWhenPan)) {
(0 until chunkCount).forEach {
Expand Down Expand Up @@ -475,7 +475,7 @@ class WXGLRender(private val context: Context, val paneNumber: Int) : Renderer {


//elys mod - hailmod
//Custom Hail Icons
//Custom Hail Icons
hiBuffersList.forEach {
if (zoom > zoomToHideMiscFeatures) {
drawHI(it)
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/java/joshuatee/wx/radar/WXGLSurfaceView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class WXGLSurfaceView : GLSurfaceView, GestureDetector.OnGestureListener, Gestur
}
//elys mod - 3 finger to show conus radar map
MotionEvent.ACTION_MOVE -> {
//elys mod
//elys mod
//3 fingers press to show conus
val count = event.pointerCount
UtilityLog.d("wx", "Fingers Count: "+count)
Expand All @@ -149,7 +149,8 @@ class WXGLSurfaceView : GLSurfaceView, GestureDetector.OnGestureListener, Gestur
} else {
if (!locationFragment) {
(0 until numPanes).forEach {
wxglRenders[it].displayHold = false
wxglTextObjects[it].hideLabels()
wxglRenders[it].displayHold = true
wxglRenders[it].displayConus = false
}
}
Expand Down

0 comments on commit 634088b

Please sign in to comment.