OnOptionsItemSelected, return super.onOptionsItemSelected (item) explanation

For a method, onOptionsItemSelectedthis method will only be called when an element is clicked, right? If an element is clicked in this operation, but for some strange reason, the programmer did not have an if statement to check this element identifier, does it return to super.onOptionsItemSelected(item)an infinite loop, continuing to call this method?

My guess super.onOptionsItemSelected(item);is calling the parent class and calling this method again?

+4
source share
1 answer

, , , . - .onOptionsItemSelected(item); .

+3

Source: https://habr.com/ru/post/1568421/


All Articles