chinalwb / Android-Rich-text-Editor

Android Rich Text Editor With customized spans - 富文本编辑器 - Don't miss this one :)
Apache License 2.0
845 stars 166 forks source link

Html 中content內存泄露 #111

Open Hackerofshi opened 4 years ago

Hackerofshi commented 4 years ago

public class Html {

public static boolean escapeCJK = false;

public static Context sContext;
..............

}

ghost commented 4 years ago

public class AreImageGetter implements Html.ImageGetter {

private Context mContext;

private TextView mTextView;

//还有这里也会 private static GlideRequests sGlideRequests;

minwang1 commented 4 years ago

also here public class ARE_Toolbar extends LinearLayout { private static ARE_Toolbar sInstance; }

chinalwb commented 4 years ago

代码考虑不够周全,

  1. @Hackerofshi 此处传递 Application 即可,无需传递 Activity
  2. @techGay 同 1
  3. @minwang1 我记得应该有这句代码,但我怎么没找到?

    多谢各位提出问题!