rodrigo
11/26/2019, 8:52 PMonActivityCreated I have a field reference_field.addTextChangedListener() and then I navigate to a different screen (Fragment), however when I navigate back the listener no longer works and I think it has something to do with how Kotlin Android Extensions use cached views, on the other hand if I replace reference_field.addTextChangedListener() with view?.findViewById<EditText>(R.id.reference_field)?.addTextChangedListener() then navigate to a different screen and return to the previous screen the listener does work as intended. Perhaps when the view gets destroyed and recreated Kotlin synthetic is referring to a cached reference which no longer exists 🤔. Has anyone experienced this before?Amirul Zin
11/27/2019, 2:35 AMstantronic
11/28/2019, 9:20 AM