title: Two similar code constructs but one does not work
body: <p>The following are two blocks of code that should essentially do the same thing. But the second one does not execute the onEditorAction while the first one does. What is it about the second one that is different that prevents it from executing the code? NOTE: Only one of these is present in the code and not both.</p>
  
  <pre><code>// This one works    
  this.setOnEditorActionListener { v, actionId, event -&gt;
          if(actionId == EditorInfo.IME_ACTION_SEARCH){
              mOnRunSearchCallback()
              true
          } else {
              false
          }
      }
  
  // This one does not work
      this.setOnEditorActionListener(object : TextView.OnEditorActionListener {
          override fun onEditorAction(v: TextView, actionId: Int, event: KeyEvent): Boolean {
              if (actionId == EditorInfo.IME_ACTION_SEARCH) {
                  mOnRunSearchCallback()
                  return true
              }
              return false
          }
  })
  </code></pre>