mirror of
https://github.com/androidx/media.git
synced 2025-05-08 08:00:49 +08:00
Remove unnecessary TargetApi
This can hide errors as the lint is pretty smart to understand SDK level checks. PiperOrigin-RevId: 314728030
This commit is contained in:
parent
12a9351781
commit
1dedd080a4
@ -16,7 +16,6 @@
|
||||
package com.google.android.exoplayer2.drm;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.annotation.TargetApi;
|
||||
import android.media.DeniedByServerException;
|
||||
import android.media.MediaCryptoException;
|
||||
import android.media.MediaDrm;
|
||||
@ -45,7 +44,6 @@ import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
/** An {@link ExoMediaDrm} implementation that wraps the framework {@link MediaDrm}. */
|
||||
@TargetApi(23)
|
||||
@RequiresApi(18)
|
||||
public final class FrameworkMediaDrm implements ExoMediaDrm {
|
||||
|
||||
@ -254,7 +252,6 @@ public final class FrameworkMediaDrm implements ExoMediaDrm {
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
@TargetApi(28)
|
||||
public PersistableBundle getMetrics() {
|
||||
if (Util.SDK_INT < 28) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user