Use explicit constant for @TargetApi

This commit is contained in:
Romain Vimont 2024-10-22 19:47:56 +02:00
parent 7b3dd595b4
commit 9578aae34e
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.genymobile.scrcpy.wrappers;
import com.genymobile.scrcpy.AndroidVersions;
import com.genymobile.scrcpy.util.Ln;
import android.annotation.TargetApi;
@ -200,7 +201,7 @@ public final class WindowManager {
}
}
@TargetApi(29)
@TargetApi(AndroidVersions.API_29_ANDROID_10)
public void registerDisplayFoldListener(IDisplayFoldListener foldListener) {
try {
Class<?> cls = manager.getClass();