mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
testing leaks
This commit is contained in:
parent
a2a4da5a29
commit
afadf121f4
4 changed files with 6 additions and 2 deletions
|
@ -209,7 +209,7 @@ dependencies {
|
||||||
|
|
||||||
implementation("com.github.discord:OverlappingPanels:0.1.3")
|
implementation("com.github.discord:OverlappingPanels:0.1.3")
|
||||||
// debugImplementation because LeakCanary should only run in debug builds.
|
// debugImplementation because LeakCanary should only run in debug builds.
|
||||||
// debugImplementation("com.squareup.leakcanary:leakcanary-android:2.7")
|
//debugImplementation("com.squareup.leakcanary:leakcanary-android:2.12")
|
||||||
|
|
||||||
// for shimmer when loading
|
// for shimmer when loading
|
||||||
implementation("com.facebook.shimmer:shimmer:0.5.0")
|
implementation("com.facebook.shimmer:shimmer:0.5.0")
|
||||||
|
|
|
@ -1122,7 +1122,7 @@ interface LoadResponse {
|
||||||
var isTrailersEnabled = true
|
var isTrailersEnabled = true
|
||||||
|
|
||||||
fun LoadResponse.isMovie(): Boolean {
|
fun LoadResponse.isMovie(): Boolean {
|
||||||
return this.type.isMovieType()
|
return this.type.isMovieType() || this is MovieLoadResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
@JvmName("addActorNames")
|
@JvmName("addActorNames")
|
||||||
|
|
|
@ -165,6 +165,8 @@ class SettingsFragment : Fragment() {
|
||||||
activity?.navigate(id, Bundle())
|
activity?.navigate(id, Bundle())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// used to debug leaks showToast(activity,"${VideoDownloadManager.downloadStatusEvent.size} : ${VideoDownloadManager.downloadProgressEvent.size}")
|
||||||
|
|
||||||
val isTrueTv = isTrueTvSettings()
|
val isTrueTv = isTrueTvSettings()
|
||||||
|
|
||||||
for (syncApi in accountManagers) {
|
for (syncApi in accountManagers) {
|
||||||
|
|
|
@ -3,6 +3,8 @@ package com.lagradost.cloudstream3.utils
|
||||||
class Event<T> {
|
class Event<T> {
|
||||||
private val observers = mutableSetOf<(T) -> Unit>()
|
private val observers = mutableSetOf<(T) -> Unit>()
|
||||||
|
|
||||||
|
val size : Int get() = observers.size
|
||||||
|
|
||||||
operator fun plusAssign(observer: (T) -> Unit) {
|
operator fun plusAssign(observer: (T) -> Unit) {
|
||||||
observers.add(observer)
|
observers.add(observer)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue