Sfoglia il codice sorgente

android: fix warning

master
Saúl Ibarra Corretgé 6 anni fa
parent
commit
349b1ff70e

+ 2
- 0
android/sdk/src/main/java/org/jitsi/meet/sdk/PictureInPictureModule.java Vedi File

16
 
16
 
17
 package org.jitsi.meet.sdk;
17
 package org.jitsi.meet.sdk;
18
 
18
 
19
+import android.annotation.TargetApi;
19
 import android.app.Activity;
20
 import android.app.Activity;
20
 import android.app.PictureInPictureParams;
21
 import android.app.PictureInPictureParams;
21
 import android.os.Build;
22
 import android.os.Build;
53
      * including when the activity is not visible (paused or stopped), if the
54
      * including when the activity is not visible (paused or stopped), if the
54
      * screen is locked or if the user has an activity pinned.
55
      * screen is locked or if the user has an activity pinned.
55
      */
56
      */
57
+    @TargetApi(Build.VERSION_CODES.O)
56
     public void enterPictureInPicture() {
58
     public void enterPictureInPicture() {
57
         if (!isPictureInPictureSupported()) {
59
         if (!isPictureInPictureSupported()) {
58
             throw new IllegalStateException("Picture-in-Picture not supported");
60
             throw new IllegalStateException("Picture-in-Picture not supported");

Loading…
Annulla
Salva