Closed cmtjk closed 4 years ago
To fix a possible race condition mentioned in https://github.com/OpenLauncherTeam/openlauncher/pull/561 I've refactored the AppManager.java's AsyncGetApps task.
AppManager.java
AsyncGetApps
All global variables modified by doInBackground() are replaced by temporary variables. New assignments of global variables are done in onPostExecute() which is executed in the main thread.
doInBackground()
onPostExecute()
To fix a possible race condition mentioned in https://github.com/OpenLauncherTeam/openlauncher/pull/561 I've refactored the
AppManager.java
'sAsyncGetApps
task.All global variables modified by
doInBackground()
are replaced by temporary variables. New assignments of global variables are done inonPostExecute()
which is executed in the main thread.