Android-Rich-text-Editor icon indicating copy to clipboard operation
Android-Rich-text-Editor copied to clipboard

Html 中content內存泄露

Open Hackerofshi opened this issue 5 years ago • 3 comments

public class Html {

public static boolean escapeCJK = false;

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

}

Hackerofshi avatar Mar 24 '20 01:03 Hackerofshi

public class AreImageGetter implements Html.ImageGetter {

private Context mContext;

private TextView mTextView;

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

techGay avatar Apr 27 '20 17:04 techGay

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

minwang1 avatar May 11 '20 07:05 minwang1

代码考虑不够周全,

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

多谢各位提出问题!

chinalwb avatar Jun 21 '20 02:06 chinalwb