Skip to content

Commit

Permalink
Suppress deprecations in CS3IPlayer (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna712 authored Jan 28, 2025
1 parent 86da2f0 commit 6acd01d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")

package com.lagradost.cloudstream3.ui.player

import android.annotation.SuppressLint
Expand Down Expand Up @@ -1040,7 +1042,7 @@ class CS3IPlayer : IPlayer {
Log.i(TAG, "loadExo")
val settingsManager = PreferenceManager.getDefaultSharedPreferences(context)
val maxVideoHeight = settingsManager.getInt(
context.getString(if (context.isUsingMobileData()) com.lagradost.cloudstream3.R.string.quality_pref_mobile_data_key else com.lagradost.cloudstream3.R.string.quality_pref_key),
context.getString(if (context.isUsingMobileData()) R.string.quality_pref_mobile_data_key else R.string.quality_pref_key),
Int.MAX_VALUE
)

Expand Down Expand Up @@ -1216,7 +1218,7 @@ class CS3IPlayer : IPlayer {
// Only play next episode if autoplay is on (default)
if (PreferenceManager.getDefaultSharedPreferences(context)
?.getBoolean(
context.getString(com.lagradost.cloudstream3.R.string.autoplay_next_key),
context.getString(R.string.autoplay_next_key),
true
) == true
) {
Expand Down

0 comments on commit 6acd01d

Please sign in to comment.