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