Hi Stackoverflowers (I know, that doesn\'t sound like it should...)
Well I think It\'s almost all in the question: I\'d like to catch anything that causes the displa
The best solution I have come to this so far is to implement in your activity
onWindowFocusChanged
https://developer.android.com/reference/android/app/Activity#onWindowFocusChanged(boolean)
In Kotlin:
override fun onWindowFocusChanged(hasFocus: Boolean) {
super.onWindowFocusChanged(hasFocus)
if (!hasFocus) {
//todo your logic
}
}
Since this can be called a lot of times you can debounce this event when showing an animation