Open lanshifu opened 3 years ago
because when in Fragment,the code
try { activity = (Activity) getContext(); } catch (ClassCastException e) { return null; }
will cause ClassCastException and return null
because when in Fragment,the code
will cause ClassCastException and return null