|
@@ -30,6 +30,7 @@ import com.swago.loadUrl
|
|
import com.swago.room.R
|
|
import com.swago.room.R
|
|
import de.hdodenhof.circleimageview.CircleImageView
|
|
import de.hdodenhof.circleimageview.CircleImageView
|
|
import java.io.File
|
|
import java.io.File
|
|
|
|
+import java.lang.ref.WeakReference
|
|
import java.net.URL
|
|
import java.net.URL
|
|
import java.util.LinkedList
|
|
import java.util.LinkedList
|
|
|
|
|
|
@@ -59,7 +60,8 @@ class JoinRoomManager : IRoomActiveListener {
|
|
|
|
|
|
fun initViewStub(viewStub: ViewStub?, activity: FragmentActivity?) {
|
|
fun initViewStub(viewStub: ViewStub?, activity: FragmentActivity?) {
|
|
mActivity = activity
|
|
mActivity = activity
|
|
- svgParser = SVGAParser(mActivity)
|
|
|
|
|
|
+ val activityRef = WeakReference(mActivity)
|
|
|
|
+ svgParser = SVGAParser(activityRef.get())
|
|
viewStub?.apply {
|
|
viewStub?.apply {
|
|
val view = this.inflate()
|
|
val view = this.inflate()
|
|
svgaImageView = view.findViewById(R.id.svgaImageView)
|
|
svgaImageView = view.findViewById(R.id.svgaImageView)
|