Change the adapter state check logic

No match.