Для моего приложения android, когда пользователь воспроизводит видео, в режиме pip запускается новое действие (VideoPlay).
Манифест (воспроизведение видео)
<activity
android:name=".PlayVideo"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:launchMode="singleTask"
android:theme="@style/AppTheme.NoActionBar"
tools:ignore="LockedOrientationActivity"
android:supportsPictureInPicture="true"
android:configChanges=
"screenSize|smallestScreenSize|screenLayout|orientation"/>
Проблема когда я нажимаю кнопку закрытия "X" на экране pip, создается новый экземпляр моего приложения.
как решить эту проблему? спасибо