Convert an anonymous AsyncTask to a static nested class
Small refactoring to eliminate the warning in Android Studio: "This
AsyncTask class should be static or leaks might occur".
There is not much benefit, because holding a reference (via the
anonymous AsyncTask) to the instance of LibraryLoader won't change the
lifetime of this LibraryLoader.
There is some additional verbosity as well :/
Given the amount of subtleties around the use of AsyncTask, having
uses of it being consistent with the Lint recommendation seems worth it.
Commit-Queue: Egor Pasko <firstname.lastname@example.org>
Reviewed-by: Tommy Nyquist <email@example.com>
1 file changed