title: 'this@ActivityName' is not captured error Android/Kotlin
body: <p>I'm repairing my friend's code and got confused.<br />
  My friend wants to fetch entered text (in EditText). Seems easy, right? Well, it is but instead of user input, he gets this warning/error:<br />
  <a href="https://i.stack.imgur.com/sHoJr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sHoJr.png" alt="enter image description here" /></a></p>
  <p>To be honest I'm not sure how to fix it. He is coding in Kotlin (Android 10).<br />
  Activity that contains EditText:
  <a href="https://i.stack.imgur.com/DFWe8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DFWe8.png" alt="enter image description here" /></a></p>
  <p>And XML:<br />
  <a href="https://i.stack.imgur.com/R3IyA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/R3IyA.png" alt="enter image description here" /></a></p>
  <p>This is how it looks when debugging:<br />
  <a href="https://i.stack.imgur.com/Nm1VR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Nm1VR.png" alt="enter image description here" /></a></p>
  <p><strong>The app started working just fine after running &quot;File -&gt; invalidate Cashes/Restart&quot; option</strong>, I just don't understand where this warning came from and how to fix it because the error remained unchanged (even though the app works). Do you have an idea how to solve it?</p>
  <p>All the best!</p>