on Window Focus Changed
Called when the current Window
of the activity gains or loses focus. This is the best indicator of whether this activity is the entity with which the user actively interacts. The default implementation clears the key tracking state, so should always be called.
Parameters
hasFocus
Whether the window of this activity has focus.