
Android CustomView lifecycle
Hi, how do i delegate lifecycle callbacks to Player inside CustomView ? Player requires onPause, onResume, onDestroy lifecycle callbacks while CustomView in Android only has onDestroy (formally onDetachedFromWindow()). I'm thinking of Activity delegation only onPause and onResume to CustomView which delegates them to Player, but Player#onDestroy is called when onDetachedFromWindow() of CustomView is called (not Activity#onDestroy) ?