<How to change PIP mode RemoteAction button icon d...
# stackoverflow
r
How to change PIP mode RemoteAction button icon dynamically I have implemented a PIP feature in my app, which is working fine and it have a button for mute & unmute. everything is working but the issue is I am not able to update the icon. can anyone please share me a peoper way to update that. private val isPipSupport by lazy { packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE) } private fun setPipMode() { if (!isPipSupport) return val pipParams = getPipParams() ?: return enterPictureInPictureMode(pipParams) }...