File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/main/java/org/havenapp/main Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1717package org .havenapp .main ;
1818
1919import android .Manifest ;
20+ import android .app .PictureInPictureParams ;
2021import android .content .Intent ;
2122import android .content .pm .PackageManager ;
2223import android .content .res .Configuration ;
@@ -312,8 +313,8 @@ private void initMonitor() {
312313 @ Override
313314 public void onUserLeaveHint () {
314315 if (mIsMonitoring ) {
315- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .N ) {
316- enterPictureInPictureMode ();
316+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
317+ enterPictureInPictureMode (new PictureInPictureParams . Builder (). build () );
317318 }
318319 }
319320 }
@@ -324,8 +325,8 @@ public void onUserLeaveHint () {
324325 public void onBackPressed () {
325326
326327 if (mIsMonitoring ) {
327- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .N ) {
328- enterPictureInPictureMode ();
328+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
329+ enterPictureInPictureMode (new PictureInPictureParams . Builder (). build () );
329330 }
330331 else
331332 {
You can’t perform that action at this time.
0 commit comments