Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub committed Oct 5, 2024
1 parent 1d5aa97 commit 4bea0af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions android/src/main/java/com/brentvatne/common/api/AdsProps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ class AdsProps {
/** return true if this and src are equals */
override fun equals(other: Any?): Boolean {
if (other == null || other !is AdsProps) return false
return (adTagUrl == other.adTagUrl &&
adLanguage == other.adLanguage)
return (
adTagUrl == other.adTagUrl &&
adLanguage == other.adLanguage
)
}

companion object {
Expand All @@ -33,7 +35,7 @@ class AdsProps {
} else {
adsProps.adTagUrl = Uri.parse(uriString)
}
val languageString = ReactBridgeUtils.safeGetString(src, PROP_AD_LANGUAGE);
val languageString = ReactBridgeUtils.safeGetString(src, PROP_AD_LANGUAGE)
if (!TextUtils.isEmpty(languageString)) {
adsProps.adLanguage = languageString
}
Expand Down
1 change: 1 addition & 0 deletions android/src/main/java/com/brentvatne/common/api/Source.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class Source {
* Ads playback properties
*/
var adsProps: AdsProps? = null

/**
* The list of sideLoaded text tracks
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.brentvatne.exoplayer

import android.graphics.Color
import android.net.Uri
import android.text.TextUtils
import android.util.Log
import com.brentvatne.common.api.BufferConfig
import com.brentvatne.common.api.BufferingStrategy
Expand Down

0 comments on commit 4bea0af

Please sign in to comment.