afterTextChanged() callback being called without the text being actually changed
up vote8down votefavorite |
I have a fragment with an Each time the fragment is being added for the second time Here is a code snippet :
I also set the fragment to retain its state, and I keep the instance of the fragment in the activity.
|
||||||||
|
1 Answer
up vote20down voteaccepted |
Edited solution: As it seems the text was changed from the second time the fragment was attached because the fragment restored the previous state of the views. My solution was adding the
|
||||||||||||
|
时间: 2024-12-10 22:52:41