Closed cuixiaoyiyi closed 4 years ago
Even it might not be a good practice to do it like that, i see no problem here. It might be changed, when i consider to refactor the Hadith Feature, but for know it can stay like it is...
Thank you for reporting.
According to our research, there are misuses about the following AsyncTask class: ( in com/metinkale/prayer/hadith/HadithFragment.java)
The problems are:
I think we can make following changes to fix the misuse problems:
private final Activity _context
as example, it can be changed tpprivate final WeakReference<Activity> _context
.cancel()
in the onDestroy() method of Activities or Fragments.