Move SSD review tap guard to typed helpers
ober
f64cd61b08dac32d0e5a09fdc2c39e0767a74508
--- a/templates/ssd-review.ss +++ b/templates/ssd-review.ss @@ -8337,9 +8337,11 @@ " finishSelection()" " } else if (touchTapReady(selectMode, moved, motionActionIsUp(event.actionMasked, MotionEvent.ACTION_UP))) {" " val point = viewToImage(event.x, event.y)" - " hitGroup(point[0], point[1])?.let {" - " selectedGroupId = it" - " onGroupTapped(it)" + " val tappedGroup = hitGroup(point[0], point[1])" + " if (nullableTextPresent(tappedGroup)) {" + " val tappedGroupId = nullableTextOrEmpty(tappedGroup)" + " selectedGroupId = tappedGroupId" + " onGroupTapped(tappedGroupId)" " }" " performClick()" " }"