From 349b1ff70e395575350f9bd09af9e99bf211fb73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 18 Jan 2019 14:36:58 +0100 Subject: [PATCH] android: fix warning --- .../main/java/org/jitsi/meet/sdk/PictureInPictureModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/PictureInPictureModule.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/PictureInPictureModule.java index 64c7bd60d..01417013b 100644 --- a/android/sdk/src/main/java/org/jitsi/meet/sdk/PictureInPictureModule.java +++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/PictureInPictureModule.java @@ -16,6 +16,7 @@ package org.jitsi.meet.sdk; +import android.annotation.TargetApi; import android.app.Activity; import android.app.PictureInPictureParams; import android.os.Build; @@ -53,6 +54,7 @@ class PictureInPictureModule * including when the activity is not visible (paused or stopped), if the * screen is locked or if the user has an activity pinned. */ + @TargetApi(Build.VERSION_CODES.O) public void enterPictureInPicture() { if (!isPictureInPictureSupported()) { throw new IllegalStateException("Picture-in-Picture not supported");