mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add comments
This commit is contained in:
parent
c04dc99105
commit
d2cd1d53ee
1 changed files with 1 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ public class NearbyListFragment extends ListFragment implements TaskListener {
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
||||||
|
// See http://stackoverflow.com/questions/18264408/incomplete-asynctask-crashes-my-app
|
||||||
if(nearbyAsyncTask != null && nearbyAsyncTask.getStatus() != AsyncTask.Status.FINISHED) {
|
if(nearbyAsyncTask != null && nearbyAsyncTask.getStatus() != AsyncTask.Status.FINISHED) {
|
||||||
nearbyAsyncTask.cancel(true);
|
nearbyAsyncTask.cancel(true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue