I’m looking at some code that has a call to findViewById without assigning the result or doing anything with it, and want to make sure that’s safe to remove. Is there ever a case where someone might call this without doing anything with the result?
I’m looking at some code that has a call to findViewById without assigning the
Share
findViewById() has no side-effect, at least in the Views that ship with the Android platform. I cannot guarantee what custom Views do in apps.