Created
October 14, 2022 07:05
-
-
Save tfaki/cea54f2dd292720fb3cf322a25a64d5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onPictureInPictureModeChanged( | |
isInPictureInPictureMode: Boolean, | |
newConfig: Configuration? | |
) { | |
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig) | |
if (isInPictureInPictureMode){ | |
Log.d(TAG, "onPictureInPictureModeChanged: Entered PIP") | |
pipButton.visibility = View.GONE | |
} | |
else{ | |
Log.d(TAG, "onPictureInPictureModeChanged: Exited PIP") | |
pipButton.visibility = View.VISIBLE | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment