|
|
@ -1,7 +1,6 @@ |
|
|
|
package io.legado.app.help |
|
|
|
package io.legado.app.help |
|
|
|
|
|
|
|
|
|
|
|
import android.app.Activity |
|
|
|
import android.app.Activity |
|
|
|
import io.legado.app.utils.LogUtils |
|
|
|
|
|
|
|
import java.lang.ref.WeakReference |
|
|
|
import java.lang.ref.WeakReference |
|
|
|
import java.util.* |
|
|
|
import java.util.* |
|
|
|
|
|
|
|
|
|
|
@ -13,7 +12,6 @@ object ActivityHelp { |
|
|
|
private val activities: MutableList<WeakReference<Activity>> = arrayListOf() |
|
|
|
private val activities: MutableList<WeakReference<Activity>> = arrayListOf() |
|
|
|
|
|
|
|
|
|
|
|
fun size(): Int { |
|
|
|
fun size(): Int { |
|
|
|
LogUtils.d("xxxx", activities.size.toString()) |
|
|
|
|
|
|
|
return activities.size |
|
|
|
return activities.size |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|