mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
fix lint @OptIn lint error
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
7143104b6f
commit
903fc44edb
2 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
|||
package com.nextcloud.client.media
|
||||
|
||||
import android.content.Context
|
||||
import androidx.annotation.OptIn
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.datasource.DefaultDataSource
|
||||
import androidx.media3.datasource.okhttp.OkHttpDataSource
|
||||
|
@ -38,7 +39,7 @@ object NextcloudExoPlayer {
|
|||
* IP versions and certificates.
|
||||
*
|
||||
*/
|
||||
@UnstableApi
|
||||
@OptIn(UnstableApi::class)
|
||||
@JvmStatic
|
||||
fun createNextcloudExoplayer(context: Context, nextcloudClient: NextcloudClient): ExoPlayer {
|
||||
val okHttpDataSourceFactory = OkHttpDataSource.Factory(nextcloudClient.client)
|
||||
|
|
|
@ -82,6 +82,7 @@ import java.util.concurrent.Executors;
|
|||
import javax.inject.Inject;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.OptIn;
|
||||
import androidx.annotation.StringRes;
|
||||
import androidx.appcompat.app.ActionBar;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
@ -96,7 +97,7 @@ import androidx.media3.common.MediaItem;
|
|||
import androidx.media3.common.util.UnstableApi;
|
||||
import androidx.media3.exoplayer.ExoPlayer;
|
||||
|
||||
@UnstableApi
|
||||
@OptIn(markerClass = UnstableApi.class)
|
||||
/**
|
||||
* This fragment shows a preview of a downloaded media file (audio or video).
|
||||
* <p>
|
||||
|
|
Loading…
Reference in a new issue